Skip to content
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

body override is not honored #188

Closed
pratikjarande opened this issue Aug 15, 2018 · 0 comments
Closed

body override is not honored #188

pratikjarande opened this issue Aug 15, 2018 · 0 comments
Assignees
Labels
bug Bug report/fix
Milestone

Comments

@pratikjarande
Copy link

pratikjarande commented Aug 15, 2018

I want to hide request body for one of my methods. When I try to pass drf_yasg.utils.no_body to request_body in swagger_auto_schema, it gives me back the Serializer instead.

Seems like it is falling through the cracks in the condition below,

if body_override is None and self.method in self.implicit_body_methods:

@axnsan12 axnsan12 added the bug Bug report/fix label Sep 9, 2018
@axnsan12 axnsan12 self-assigned this Sep 9, 2018
@axnsan12 axnsan12 added this to the 1.10.1 milestone Sep 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report/fix
Projects
None yet
Development

No branches or pull requests

2 participants