swagger.io
swagger.io copied to clipboard
"Describing parameters" says "Accept" is part of the response when it is not
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.
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.