Replies: 3 comments 7 replies
-
One option would be special casing return types of
If you might return several status codes:
|
Beta Was this translation helpful? Give feedback.
6 replies
-
I have hit a snag working on this: python/mypy#11414 |
Beta Was this translation helpful? Give feedback.
1 reply
-
This has been implemented, but I feel we'll need to revisit this when we figure out how to set response content types and headers. |
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
-
The OpenAPI generator needs to know the status codes handlers will produce, and it needs to know before the handler is actually executed.
According to the OpenAPI 3.0.3 spec, "documentation is expected to cover a successful operation response and any known errors".
Beta Was this translation helpful? Give feedback.
All reactions