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

fix: Use consistent fallback for operationId

When both operationId and summary are undefined, use the same method+path fallback for both to avoid empty/broken URLs. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Sushmithamallesh committed Jan 30, 2026 at 16:15 UTC 5be95d272fa3db14a26f000f7ac5f3ccc845069c
1 file changed +3 -2
docs/scripts/generate-api-index.ts
+3 -2
@@ -45,12 +45,13 @@ function generateIndexPages() {
45 if (!tagOperations[tag]) {
46 tagOperations[tag] = [];
47 }
48 + const summaryFallback = operation.summary || `${method.toUpperCase()} ${path}`;
49 tagOperations[tag].push({
49 - summary: operation.summary || `${method.toUpperCase()} ${path}`,
50 + summary: summaryFallback,
51 description: operation.description,
52 method: method.toUpperCase(),
53 path,
53 - operationId: operation.operationId || slugify(operation.summary || ''),
54 + operationId: operation.operationId || slugify(summaryFallback),
55 });
56 }
57 }