Replies: 1 comment
-
A pull request for the proposal: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
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 will not be validated like normal responses.
This can lead to inconsistent OpenAPI specification and implementation.
What about wrapping the
on_exception
calls in theOperation
class (e.g.django-ninja/ninja/operation.py
Line 127 in eecb05f
If it is a good idea, I can make a PR for it.
This proposal would be a solution for this question:
#1118 (comment)
Beta Was this translation helpful? Give feedback.
All reactions