Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
fix: return false for missing array item schema in isExpandable
Prevents crash in SchemaContent when refs[$type] is undefined. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sushmithamallesh committed
Feb 5, 2026 at 19:33 UTC
197c14c0dc73806f5a16613cdf4dc547d41a63a3
1 file changed
+1
-1
docs/components/custom-schema-ui.tsx
+1
-1
@@ -247,7 +247,7 @@ function isExpandable(
247
const itemType = schema.item.$type;
248
if (visited.has(itemType)) return false; // Circular ref - not expandable
249
const itemSchema = refs[itemType];
250
- if (!itemSchema) return true;
250
+ if (!itemSchema) return false;
251
return itemSchema.type !== 'primitive';
252
}
253
if ((schema.type === 'or' || schema.type === 'and') && schema.items.length > 0) {