How to define Header parameter values? #3827
Replies: 5 comments 8 replies
-
@jeremyfiel modeling headers is a major weakness in 3.x. The We're looking at modeling HTTP interactions more holistically, including headers, in Moonwalk, and I'm hopeful that we could backport the header chunk to a 3.3 (if we can get approval for a 3.3, which would depend on a small, successful 3.2). A few thoughts on your specific questions:
See also (which I somehow forgot but @jeremyfiel noticed): |
Beta Was this translation helpful? Give feedback.
-
I'll pat myself on the back for this one.. I did indeed find and read all of your links prior to posting. 😃 regarding the compenents:
parameters:
accept:
name: accept
in: header
content:
'application/json; q=0.9': // like this??? This doesn't allow any definition of the `q` value though. Where would a user manually input a `q` value in a UI, specifically to test different `q` values and the response they may receive.
schema:
type: string
'application/vnd.app+json; q=0.8':
schema:
type: string
'application/vnd.another_app+json; q=0.6':
schema:
type: string Imagine you have multiple mediatypes available and you want to rank their preference, that doesn't work to define the value of A good example from RFC9110 shows the behavior we are unable to define in OAS3.x.x.
setting these parameters for something like Yes, we are using |
Beta Was this translation helpful? Give feedback.
-
I also found this issue is related #2458 |
Beta Was this translation helpful? Give feedback.
-
Where is something like this defined? I'm not familiar with where to find such information |
Beta Was this translation helpful? Give feedback.
-
I've also run into this issue. Our existing API requires users to specify |
Beta Was this translation helpful? Give feedback.
-
I've not found any sufficient way to define header parameter values such as below:
rel
in alink
headerq
in anaccept
headername
incontent-disposition
headeretc...
Can someone share an example of that?
Beta Was this translation helpful? Give feedback.
All reactions