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

FormParser and JSONParser in a ViewSet #828

Open
OmarSRolo opened this issue Dec 24, 2022 · 0 comments
Open

FormParser and JSONParser in a ViewSet #828

OmarSRolo opened this issue Dec 24, 2022 · 0 comments

Comments

@OmarSRolo
Copy link

OmarSRolo commented Dec 24, 2022

When I use JSONParser and FormParser in the same ViewSet I got this error:

drf_yasg.errors.SwaggerGenerationError: cannot add form parameters when the request has a request body; did you forget to set an appropriate parser class on the view?

I need both parser in the viewset, How could I do it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant