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
fix(docs): handle boolean root schema in getRawRef call
Sushmithamalleshebcc7a23e838
diff --git a/docs/components/api-page.tsx b/docs/components/api-page.tsxindex e7243fc20..495ef57a4 100644--- a/docs/components/api-page.tsx+++ b/docs/components/api-page.tsx@@ -12,7 +12,11 @@ export const APIPage = createAPIPage(openapi, {render: (options, ctx) => {// Skip rendering the shared Error schema on error responses -// the status code and description are shown by the accordion already- const ref = ctx.schema.getRawRef(options.root);+ // options.root can be boolean for simple schemas, only check refs for objects+ const ref =+ typeof options.root === 'object'+ ? ctx.schema.getRawRef(options.root)+ : null;if (ref === '#/components/schemas/Error') return null;const generated = generateSchemaData(