Skip to content

Accept/Content-Type/Authorization Ignored #2777

Closed Answered by webron
jaydreyer asked this question in Q&A
Discussion options

You must be logged in to vote
  1. That was indeed one of the stricter changes from 2.0 to 3.0. You simply cannot have those as defined headers anymore as those are exclusively defined under content now. If you're using any conversion tools, they may be able to support it (or extended to support it). Adding those headers in 3+ is a no-go and should fail validation.

  2. key or x-api-key could have been defined in 2.0 as well under the security sections. I don't believe there's any requirement for you to move them to become security definitions rather than parameters in 3.0. The benefit of moving them to the security section is that that you're not going to have to add them to each and every operation. authorization is stric…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jaydreyer
Comment options

You must be logged in to vote
1 reply
@webron
Comment options

Comment options

You must be logged in to vote
1 reply
@webron
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants