Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate responses from exception handlers to avoid inconsistent OpenAPI specification #1407

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

matez0
Copy link

@matez0 matez0 commented Feb 7, 2025

In the OpenAPI specification of the request handlers, it is possible to declare response schemas for different response status, but if the response is generated by an exception handler, it was not validated like normal responses.
This could lead to inconsistent OpenAPI specification and implementation.

…API specification

In the OpenAPI specification of the request handlers,
it is possible to declare response schemas for different response status,
but if the response is generated by an exception handler,
it was not validated like normal responses.
This could lead to inconsistent OpenAPI specification and implementation.
@matez0
Copy link
Author

matez0 commented Feb 7, 2025

If the idea is accepted, does this change need to be mentioned in the documentation?

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