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

GET doesn't work with request body #2678

Closed
tamanna2702 opened this issue Aug 20, 2021 · 1 comment
Closed

GET doesn't work with request body #2678

tamanna2702 opened this issue Aug 20, 2021 · 1 comment

Comments

@tamanna2702
Copy link

I am using springdoc-openapi version 1.5.9 and have a GET method in my controller with a request body. The endpoint works completly fine with postman but with Swagger UI, it gives 'TypeError : Failed to execute fetch on Window.Request with GET/HEAD method cannot have body'.

Expected behavior:

GET with request body should be allowed
The PR to support this expectation : #2117

@tamanna2702
Copy link
Author

Apparently its a Swagger UI issue.

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