-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Parameter schema specification via content #3421
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
Comments
Can we agree on |
@commonism note that your example is not allowed by the spec as it uses two media types:
The OAS also does not allow using an Encoding Object with the Media Type Object in this scenario:
Note the restriction to Request Body Objects. All the |
didn't mean to close (for once!) |
Hi, great news, easier than I anticipated.
|
Sounds like the answer of "it doesn't apply to parameters" is accepted and there's no additional change needed to the spec. Please comment if I'm missing something here and I can re-open. |
I tried to propose adding
or, merging into
|
Oh I did not understand your formatting as making a proposal. Hmm... I can see how one might read this as talking about when it applies to Request Body objects, and not necessarily excluding other objects. I'll re-open and tag as a clarification for consideration in a patch release. |
I'd like to clarify the purpose of the Parameter Object schema specification depending on the media type via content.
What is this complex scenario?
Having different media types defined for the body, the parameters schema should depend on the media type of the body?
If the Media Type Object encoding property is not to be used when used with Parameter Objects, so the encoding of possibly different parameter types is set by the parameter independent of the schema.
If the encoding is free be used for Parameter Objects… for an object this will combine different encodings for the objects properties?
The text was updated successfully, but these errors were encountered: