docs(website): document the OpenAPI path-key normalization #52
Reference in New Issue
Block a user
No description provided.
Delete Branch "docs/swagger-normalize-paths"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What & why
Documentation half of RunicGateway/website#101 (
build(swagger): normalize and sort generated OpenAPI path keys), which post-processes swagger-autogen's output ahead of the admin router domain split(
API_V2_PLAN.md§ Phase 2).website-README.md§ Regenerating the spec — why trailing slashes are stripped from generatedpath keys (a capability router mounted at
/usersdeclaringrouter.get('/')would otherwisedocument
/api/v1/admin/users/, a URL no client calls, while dropping the one they all do), andwhy path keys are sorted.
BACKEND_DESIGN.md§ generated artifacts — note that both the route manifest and the spec areemitted with sorted keys, so a diff in either is proportional to the change rather than to router
traversal order.
How it was tested
Markdown only. Cross-checked against the code landing in website#101.
Checklist
AI-assisted contributions (required)
Claude Code (Opus 5). I have reviewed and understandevery change, and take responsibility for it. AI-authored commits are
marked with a
Co-Authored-By/Assisted-Bytrailer.License
(GNU GPL v3.0 or later), and I have the right to contribute it.
Matches website PR "build(swagger): normalize and sort generated OpenAPI path keys", which post-processes swagger-autogen's output ahead of the admin router domain split (API_V2_PLAN.md § Phase 2). - website-README.md § Regenerating the spec: why trailing slashes are stripped (a capability router mounted at /users declaring router.get('/') would document /api/v1/admin/users/, a URL no client calls) and why path keys are sorted. - BACKEND_DESIGN.md § generated artifacts: note that both the route manifest and the spec are emitted sorted, so a diff in either is proportional to the change. Co-Authored-By: Claude <noreply@anthropic.com>