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.

docs: hide redundant error schemas and TypeScript definitions

Sushmithamallesh3d5f7192f604
diff --git a/docs/app/global.css b/docs/app/global.css
index 324843b9c..384eaaf56 100644
--- a/docs/app/global.css
+++ b/docs/app/global.css
@@ -488,6 +488,11 @@ div.flex.items-center:has(> span.font-mono.text-fd-primary > span.text-red-400)
color: #f87171;
}
+/* Hide empty schema wrapper divs (e.g. when Error schema is skipped) */
+div.border.rounded-lg:not(:has(*)) {
+ display: none;
+}
+
/* Hide redundant "application/json" content type labels */
p.text-fd-muted-foreground.not-prose:has(> code.text-xs) {
display: none;
diff --git a/docs/components/api-page.tsx b/docs/components/api-page.tsx
index b7fc89f02..0770ca471 100644
--- a/docs/components/api-page.tsx
+++ b/docs/components/api-page.tsx
@@ -6,8 +6,14 @@ import { CustomSchemaUI } from './custom-schema-ui';
export const APIPage = createAPIPage(openapi, {
client,
+ generateTypeScriptSchema: false,
schemaUI: {
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);
+ if (ref === '#/components/schemas/Error') return null;
+
const generated = generateSchemaData(
{
root: options.root,