Skip to content

GEN-2152: Generate and verify OpenAPI from executable route contracts - #200

Merged
exe-dev-github-integration[bot] merged 1 commit into
mainfrom
feat/gen-2152-openapi-contract
Oct 9, 2026
Merged

exe-dev-github-integration[bot] merged 1 commit into
mainfrom
feat/gen-2152-openapi-contract

Conversation

@asselstine

Copy link
Copy Markdown
Collaborator

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:openapi deterministically 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

@linear

linear Bot commented Oct 9, 2026

Copy link
Copy Markdown

GEN-2152

@exe-dev-github-integration
exe-dev-github-integration Bot added this pull request to the merge queue Oct 9, 2026
Merged via the queue into main with commit 7d36a21 Oct 9, 2026
2 checks passed
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