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

"Describing parameters" says "Accept" is part of the response when it is not #307

Open
thernstig opened this issue Jun 23, 2021 · 1 comment

Comments

@thernstig
Copy link

https://swagger.io/docs/specification/describing-parameters/ check under "Header Parameters" and the table, where it says "Accept". It says it is part of responses.<code>.content.<media-type> and the link in the last column also links to response.

But Accept is part of a request.

@hkosova
Copy link
Contributor

hkosova commented Jun 23, 2021

The doc is correct. responses.<code>.content.<media-type> defines both the response's Content-Type header and the request's Accept header. In other words, possible values for the request's Accept header are derived from the defined response media types.

@martinloewinger martinloewinger transferred this issue from swagger-api/swagger.io-docs Jun 24, 2021
@martinloewinger martinloewinger transferred this issue from swagger-api/swagger-core Jun 24, 2021
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

2 participants