Can return HTTPStatus member when default response is declared#1918
Can return HTTPStatus member when default response is declared#1918Ruwann merged 3 commits intospec-first:mainfrom
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. |
Ruwann
left a comment
There was a problem hiding this comment.
Thanks for updates!
Really appreciate the clear issue with reproducible example and PR to fix it!
Fixes #1917 .
Changes proposed in this pull request: