Skip to content

Skip links to undocumented resources in generated API docs#1078

Closed
louis-pre wants to merge 1 commit into
mainfrom
fix-undocumented-resource-links
Closed

Skip links to undocumented resources in generated API docs#1078
louis-pre wants to merge 1 commit into
mainfrom
fix-undocumented-resource-links

Conversation

@louis-pre

Copy link
Copy Markdown
Member

Summary

Check isUndocumented on resources before generating links in API endpoint response sections. This prevents broken links to pages that don't exist because the resource namespace is undocumented.

Fixes the unstable_partner/building_blocks broken link in customers/create_portal.md — the magic_link resource is marked as undocumented, so no page exists for it.

Changes

codegen/lib/layout/api-endpoint.ts — added !responseResource.isUndocumented check for both regular and batch response resource links. When a resource is undocumented, the response type is still shown but without a link.

🤖 Generated with Claude Code

@louis-pre louis-pre requested a review from a team as a code owner April 21, 2026 20:49
@seambot seambot requested a review from a team as a code owner April 21, 2026 20:51
Check isUndocumented before generating resource links in endpoint
responses. Prevents broken links to pages that don't exist because
the resource namespace is undocumented (e.g., unstable_partner).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@louis-pre louis-pre force-pushed the fix-undocumented-resource-links branch from 27786f9 to 0ce3856 Compare April 21, 2026 20:52
@louis-pre

louis-pre commented Apr 21, 2026

Copy link
Copy Markdown
Member Author

Not needed — fixing in @seamapi/blueprint instead.

@louis-pre louis-pre closed this Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant