@devries-cameron20 / composio Mirror · read-only / commits / fecda3b99
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, 02:00 UTC

docs: handle additionalProperties in array items for LLM markdown

Fixes edge case where additionalProperties inside array items of an additionalProperties schema wouldn't recurse into nested children. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Sushmitha Mallesh committed Mar 18, 2026 at 11:37 UTC fecda3b997d45ae9742155cdc28e1566f7ebc4a9
1 file changed +1 -1
docs/app/llms.mdx/[[...slug]]/route.ts
+1 -1
@@ -272,7 +272,7 @@ function renderSchema(schema: OpenAPISchema, indent = 0, maxDepth = 4): string[]
272 lines.push(`${prefix}- \`[key: string]\` (${typeStr})${desc}`);
273 if (ap.type === 'object' && (ap.properties || (ap.additionalProperties && typeof ap.additionalProperties === 'object'))) {
274 lines.push(...renderSchema(ap, indent + 1, maxDepth));
275 - } else if (ap.type === 'array' && ap.items?.type === 'object' && ap.items.properties) {
275 + } else if (ap.type === 'array' && ap.items?.type === 'object' && (ap.items.properties || (ap.items.additionalProperties && typeof ap.items.additionalProperties === 'object'))) {
276 lines.push(`${prefix} - Array items:`);
277 lines.push(...renderSchema(ap.items, indent + 2, maxDepth));
278 }