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

Swagger JSON generated by Springfox shows 'Consumes' for GET operations #2933

Closed
ghost opened this issue Apr 20, 2017 · 4 comments
Closed

Swagger JSON generated by Springfox shows 'Consumes' for GET operations #2933

ghost opened this issue Apr 20, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented Apr 20, 2017

This is a similar problem to #2042.

I have a GET API request which is showing up in the Swagger JSON as consuming 'application/json'.

It's a GET, so it doesn't consume anything. How can I stop this appearing in the Swagger?

@webron
Copy link
Contributor

webron commented Apr 20, 2017

Can you share your spec and point to the operation in question?

@ghost
Copy link
Author

ghost commented Apr 20, 2017

By 'spec', do you mean the Swagger JSON? We generate this using Springfox. Sorry, I should have raised this issue on that project.

@webron
Copy link
Contributor

webron commented Apr 20, 2017

Yeah, the Swagger JSON. Please check the following - in the JSON file, if you see consumes on the operation, then the issue is with the generation and should be opened on Springfox. In that case, please close the ticket here.

If it's not there, then the issue is with the UI. If you provide us with the file we can investigate further.

@ghost
Copy link
Author

ghost commented Apr 20, 2017

Yep, it's in the generated Swagger JSON.

I raised this issue against SpringFox: springfox/springfox#1781

@ghost ghost closed this as completed Apr 20, 2017
@lock lock bot locked and limited conversation to collaborators Jul 3, 2019
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant