Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
fix: skip OpenAPI pages that lack getText method
Sushmithamallesh committed
Jan 8, 2026 at 11:50 UTC
d32a645490386cf2670c126f8498d589e0f868bd
1 file changed
+3
-1
fumadocs/scripts/validate-links.ts
+3
-1
@@ -88,10 +88,12 @@ async function getFiles(): Promise<FileObject[]> {
88
for (const page of pages) {
89
if (!page.absolutePath) continue;
90
if (!page.absolutePath.endsWith('.mdx') && !page.absolutePath.endsWith('.md')) continue;
91
+ // Skip OpenAPI-generated pages (they don't have getText)
92
+ if (!('getText' in page.data)) continue;
93
94
allFiles.push({
95
path: page.absolutePath,
94
- content: await page.data.getText('raw'),
96
+ content: await (page.data as { getText: (mode: string) => Promise<string> }).getText('raw'),
97
url: page.url,
98
data: page.data,
99
});