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(docs): resolve TS build error in toolkit-detail getChildren
Remove invalid cast of boolean `required` field to string[] — only `requiredFields` carries the string array needed for nested params. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sushmithamallesh committed
Feb 5, 2026 at 20:50 UTC
838a08ba381134dde9eb1e19f2af57cd45d3507f
1 file changed
+1
-1
docs/components/toolkits/toolkit-detail.tsx
+1
-1
@@ -60,7 +60,7 @@ function getChildren(param: ParameterSchema): Record<string, ParameterSchema> |
60
const props = param.properties || param.items?.properties;
61
if (!props || typeof props !== 'object') return null;
62
63
- const requiredList: string[] = param.requiredFields || param.items?.requiredFields || param.items?.required as string[] || [];
63
+ const requiredList: string[] = param.requiredFields || param.items?.requiredFields || [];
64
const result: Record<string, ParameterSchema> = {};
65
for (const [key, value] of Object.entries(props)) {
66
if (typeof value === 'object' && value !== null) {