Skip to content

fix: add explicit error code enums to all error responses#12

Open
johnf wants to merge 1 commit intomainfrom
fix/error-code-enums
Open

fix: add explicit error code enums to all error responses#12
johnf wants to merge 1 commit intomainfrom
fix/error-code-enums

Conversation

@johnf
Copy link
Copy Markdown
Collaborator

@johnf johnf commented Mar 27, 2026

Summary

  • Add explicit error code enums to all error responses in the OpenAPI spec

Test plan

  • Verify the OpenAPI spec validates correctly
  • Confirm all error responses have explicit status code enums

…spec

Create specialised error schemas (UnauthorizedError, ForbiddenError,
RangeNotSatisfiableError, InternalServerError) with constrained code
enums, replacing direct ErrorResponse references in component responses
and the inline 416 response. Add corresponding example responses.
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.

2 participants