Skip to content

Fix broken validation problem type URLs - #110

Merged
lightsofapollo merged 1 commit into
mainfrom
fix/109-problem-type-docs
Oct 27, 2026
Merged

lightsofapollo merged 1 commit into
mainfrom
fix/109-problem-type-docs

Conversation

@lightsofapollo

Copy link
Copy Markdown
Contributor

Generated Axum servers emit six https://openapi-to-rust.dev/problems/* identifiers whose documentation currently returns 404. Publish a static page at each existing URI, preserving identifiers for already-generated servers. Each page explains status, stable code, sanitized error fields, and corrective action.

Website builds now compare emitted problem URIs with rendered canonical pages; a new CI job builds and audits the site. Document a copyable Axum response middleware example for changing problem URIs or bodies without editing generated code, and compile/exercise that exact example in the generated-server round-trip test. Correct stale request-validation statements in the Axum guide. A generator-level problem_base_url option remains outside this fix; the documented middleware supports custom URIs today.

Validation: website build (including all six URI checks), HTML and SEO audits, negative missing-page audit, formatting and diff checks, generated-server round-trip test including middleware behavior, and mobile browser review. Middleware tests cover handler isolation, rewritten type URIs, retained violations/status/headers, stale Content-Length removal, normal/unrelated body passthrough, and bounded buffering.

Closes #109.

@vercel

vercel Bot commented Oct 27, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
openapi-to-rust Ready Ready Preview Oct 27, 2026 10:21am UTC

Request Review

@lightsofapollo
lightsofapollo merged commit e78cf93 into main Oct 27, 2026
26 of 27 checks passed
@lightsofapollo
lightsofapollo deleted the fix/109-problem-type-docs branch October 27, 2026 10:44

This branch was successfully deployed

1 active deployment
Preview — c76ae5f3 Deployed Oct 27, 2026 by vercel[bot]
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.

[bug]: Generated validation type URIs (/problems/*) all 404

1 participant