You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Connexion accepts return statements like return {}, HTTPStatus.CREATED but it fails with 500 error if response validation is enabled and if there is a default response with required fields configured in the schema.
Fixes#1917 .
Changes proposed in this pull request:
- Look at enum value for return status code if given
-
-
---------
Co-authored-by: Ruwann <ruwan.lambrichts@ml6.eu>
Description
Connexion accepts return statements like
return {}, HTTPStatus.CREATED
but it fails with 500 error if response validation is enabled and if there is a default response with required fields configured in the schema.Expected behaviour
Just use
HTTPStatus
members like integersActual behaviour
See above.
Steps to reproduce
Additional info:
Output of the commands:
python --version
: 3.9.16pip show connexion | grep "^Version\:"
: 3.0.6The text was updated successfully, but these errors were encountered: