Repository navigation
GEN-2152: Generate and verify OpenAPI from executable route contracts - #200
Merged
exe-dev-github-integration[bot] merged 1 commit intoOct 9, 2026
Merged
Conversation
This was referenced Oct 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Worker previously duplicated operation metadata across dispatch branches, a method/path allowlist, and handwritten OpenAPI. One executable route catalog now owns handlers, paths, scopes, owner-session requirements, request validation, response status/schema metadata, and documentation.
npm run generate:openapideterministically generates the committed YAML, preserving named client schemas and current canonical trace diagnostics.CI regenerates the artifact and rejects diffs. Parsed contract tests require complete bidirectional method/path equality and compile referenced schemas; representative Worker boundary tests validate JSON bodies, media types, status codes, scopes, owner sessions, path/query constraints, pagination, and queue errors. Invalid JSON returns 400 and body operations require application/json (415 otherwise); trace pagination now rejects invalid/out-of-range values with 400.
Mintlify renders its API Reference directly from that YAML. The handwritten endpoint table and text-search inventory checks are removed; explanation/download pages and LLM summaries point to the generated contract. Based on current main including #198 and #199.
Validation: CSS build; full workspace npm run check with local PostgreSQL (326 passing tests, 8 existing queue tests skipped), TypeScript, API boundaries, and Worker dry-run builds; docs validator; Mintlify build validation; deterministic regeneration and deliberate stale-artifact rejection; git diff --check. No production deployment.
Resolves GEN-2152: https://linear.app/generation/issue/GEN-2152/make-openapi-the-verified-rendered-api-contract