Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
docs: handle additionalProperties in array items for LLM markdown
Sushmitha Malleshfecda3b997d4
diff --git a/docs/app/llms.mdx/[[...slug]]/route.ts b/docs/app/llms.mdx/[[...slug]]/route.tsindex 60dcba7ea..39204bc17 100644--- a/docs/app/llms.mdx/[[...slug]]/route.ts+++ b/docs/app/llms.mdx/[[...slug]]/route.ts@@ -272,7 +272,7 @@ function renderSchema(schema: OpenAPISchema, indent = 0, maxDepth = 4): string[]lines.push(`${prefix}- \`[key: string]\` (${typeStr})${desc}`);if (ap.type === 'object' && (ap.properties || (ap.additionalProperties && typeof ap.additionalProperties === 'object'))) {lines.push(...renderSchema(ap, indent + 1, maxDepth));- } else if (ap.type === 'array' && ap.items?.type === 'object' && ap.items.properties) {+ } else if (ap.type === 'array' && ap.items?.type === 'object' && (ap.items.properties || (ap.items.additionalProperties && typeof ap.items.additionalProperties === 'object'))) {lines.push(`${prefix} - Array items:`);lines.push(...renderSchema(ap.items, indent + 2, maxDepth));}