Skip to content

feat: Throw if documented endpoints reference undocumented resources#270

Merged
louis-pre merged 3 commits into
mainfrom
throw-on-undocumented-resource-response
Apr 21, 2026
Merged

feat: Throw if documented endpoints reference undocumented resources#270
louis-pre merged 3 commits into
mainfrom
throw-on-undocumented-resource-response

Conversation

@louis-pre

Copy link
Copy Markdown
Member

Summary

Fail at build time when a documented endpoint's response references an undocumented resource type. This prevents generating broken links to pages that don't exist in the published docs.

Context

The customers/create_portal endpoint is documented but returns a magic_link resource that is marked as undocumented (unstable_partner/building_blocks). The docs codegen generates a link to this resource's page, but since the resource is undocumented, no page exists — resulting in a broken link.

Change

Add assertDocumentedEndpointsDontReferenceUndocumentedResources validation that runs after blueprint creation. It checks all documented endpoints and throws if any of their response resource types are undocumented.

🤖 Generated with Claude Code

@louis-pre louis-pre requested a review from a team as a code owner April 21, 2026 21:01
@vercel

vercel Bot commented Apr 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blueprint Ready Ready Preview, Comment Apr 21, 2026 10:53pm

Request Review

@louis-pre louis-pre changed the title Throw if documented endpoints reference undocumented resources feat: Throw if documented endpoints reference undocumented resources Apr 21, 2026
Fail at build time when a documented endpoint's response references
an undocumented resource type. This prevents generating broken links
to pages that don't exist.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Picks up the documented customer_portal resource so the
seam-blueprint test passes with the new validation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@louis-pre louis-pre merged commit a3a6968 into main Apr 21, 2026
17 checks passed
@louis-pre louis-pre deleted the throw-on-undocumented-resource-response branch April 21, 2026 22:54
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.

2 participants