Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
fix(docs): handle 'and' schema type in SchemaContent
Sushmithamalleshd720dab72236
diff --git a/docs/components/custom-schema-ui.tsx b/docs/components/custom-schema-ui.tsxindex f102321d4..588411b1e 100644--- a/docs/components/custom-schema-ui.tsx+++ b/docs/components/custom-schema-ui.tsx@@ -121,11 +121,12 @@ function SchemaContent({return <SchemaContent $type={schema.item.$type} parentPath={parentPath} />;}- if (schema.type === 'or' && schema.items.length > 0) {+ if ((schema.type === 'or' || schema.type === 'and') && schema.items.length > 0) {+ const label = schema.type === 'or' ? 'One of:' : 'All of:';return (<div className="space-y-2">- <p className="text-xs text-fd-muted-foreground">One of:</p>- {schema.items.map((item, i) => (+ <p className="text-xs text-fd-muted-foreground">{label}</p>+ {schema.items.map((item) => (<div key={item.$type} className="pl-3 border-l-2 border-fd-border"><span className="text-sm font-medium">{item.name}</span>{isExpandable(refs[item.$type], refs) && (