Skip to content

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): preserve nested required fields beyond first nesting level

Sushmithamallesh12025e32d228
diff --git a/docs/components/toolkits/toolkit-detail.tsx b/docs/components/toolkits/toolkit-detail.tsx
index 9d675dc67..a3900cef1 100644
--- a/docs/components/toolkits/toolkit-detail.tsx
+++ b/docs/components/toolkits/toolkit-detail.tsx
@@ -65,9 +65,13 @@ function getChildren(param: ParameterSchema): Record<string, ParameterSchema> |
const result: Record<string, ParameterSchema> = {};
for (const [key, value] of Object.entries(props)) {
if (typeof value === 'object' && value !== null) {
+ const raw = value as ParameterSchema & { required?: string[] | boolean };
result[key] = {
- ...(value as ParameterSchema),
+ ...raw,
required: Array.isArray(requiredList) ? requiredList.includes(key) : false,
+ // Map the child's own JSON Schema required array to requiredFields
+ // so that deeper nesting levels preserve required info
+ ...(Array.isArray(raw.required) ? { requiredFields: raw.required } : {}),
};
}
}