fix(ext-openapi): one shared answer per status, not a numbered family #24

Merged
Relism merged 1 commits from fix/openapi/one-shared-answer-per-status into master 2026-09-23 16:34:15 +00:00
Owner

Hoisting named a shared response after its status and disambiguated with a counter, so a document with three wordings for 403 grew Forbidden, Forbidden2 and Forbidden3. Numbered names say nothing and move as soon as a route is added.

The answer a status is usually given is now the one hoisted, under that status's own name; a route that answers the same status differently keeps its wording inline.

Seen on Glossa's document: Forbidden, Forbidden2, Forbidden3, Forbidden4, NotFound, NotFound2, NotFound3, OK, OK2, OK3 became Forbidden, NotFound, OK, TooManyRequests, Unauthorized.

🤖 Generated with Claude Code

Hoisting named a shared response after its status and disambiguated with a counter, so a document with three wordings for 403 grew `Forbidden`, `Forbidden2` and `Forbidden3`. Numbered names say nothing and move as soon as a route is added. The answer a status is usually given is now the one hoisted, under that status's own name; a route that answers the same status differently keeps its wording inline. Seen on Glossa's document: `Forbidden, Forbidden2, Forbidden3, Forbidden4, NotFound, NotFound2, NotFound3, OK, OK2, OK3` became `Forbidden, NotFound, OK, TooManyRequests, Unauthorized`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Relism added 1 commit 2026-09-23 16:34:15 +00:00
Hoisting named a shared response after its status and disambiguated with a
counter, so a document with three wordings for 403 grew Forbidden, Forbidden2
and Forbidden3 in its components. Numbered names say nothing and move as soon
as a route is added.

The answer a status is usually given is now the one hoisted, under that
status's own name, and a route that answers the same status differently keeps
its wording inline where it belongs.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Relism merged commit 5ece97ca7b into master 2026-09-23 16:34:15 +00:00
Relism deleted branch fix/openapi/one-shared-answer-per-status 2026-09-23 16:34:16 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Relism/Flash5#24