@devries-cameron20 / composio Mirror · read-only / commits / d720dab72
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 10:45 UTC

fix(docs): handle 'and' schema type in SchemaContent

isExpandable and getChildCount already handled 'and' type but SchemaContent didn't render it. Now both 'or' and 'and' types are rendered consistently (with "One of:" or "All of:" labels). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Sushmithamallesh committed Feb 4, 2026 at 13:38 UTC d720dab722369dcfe820d6bacaaf618cbe3f334d
1 file changed +4 -3
docs/components/custom-schema-ui.tsx
+4 -3
@@ -121,11 +121,12 @@ function SchemaContent({
121 return <SchemaContent $type={schema.item.$type} parentPath={parentPath} />;
122 }
123
124 - if (schema.type === 'or' && schema.items.length > 0) {
124 + if ((schema.type === 'or' || schema.type === 'and') && schema.items.length > 0) {
125 + const label = schema.type === 'or' ? 'One of:' : 'All of:';
126 return (
127 <div className="space-y-2">
127 - <p className="text-xs text-fd-muted-foreground">One of:</p>
128 - {schema.items.map((item, i) => (
128 + <p className="text-xs text-fd-muted-foreground">{label}</p>
129 + {schema.items.map((item) => (
130 <div key={item.$type} className="pl-3 border-l-2 border-fd-border">
131 <span className="text-sm font-medium">{item.name}</span>
132 {isExpandable(refs[item.$type], refs) && (