-
-
Notifications
You must be signed in to change notification settings - Fork 770
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
Can return HTTPStatus member when default response is declared #1918
Conversation
Hi @chbndrhnns, Thanks for the PR. |
Please take a look at the linked issue. My fix only applies when |
The root cause is indeed in the response decorator, as connexion/connexion/decorators/response.py Line 141 in 823fa6c
becomes status_code = int(status_code_or_headers) Edit: seems like the second if-branch should also catch it, so swapping the order could also work? Not sure in which cases that branch is entered :) |
c21a788
to
b7ec3da
Compare
I moved the change to the proposed location. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updates!
Really appreciate the clear issue with reproducible example and PR to fix it!
Fixes #1917 .
Changes proposed in this pull request: