-
Notifications
You must be signed in to change notification settings - Fork 341
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
Update flask_restplus_patched to have a possibility to use non model … #37
Conversation
@@ -138,13 +140,13 @@ def dump_wrapper(*args, **kwargs): | |||
# pylint: disable=missing-docstring | |||
response = func(*args, **kwargs) | |||
|
|||
if isinstance(response, flask.Response): | |||
if isinstance(response, flask.Response) or model is None: |
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.
Ouch, HTTP/204 tests failed... We need to move this whole if
after the elif
(so this if
will become elif
, and that elif
will be if
).
abb879f
to
44d1aeb
Compare
1 similar comment
|
||
elif response is None: | ||
if code == HTTPStatus.NO_CONTENT: | ||
if response is None: |
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.
Please, remove one blank line above.
…Schemas to response with code 200
44d1aeb
to
85c675b
Compare
Update flask_restplus_patched to have a possibility to use non model Schemas to response with code 200