-
Notifications
You must be signed in to change notification settings - Fork 9.2k
v3.2: Fix allowReserved #4900
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
v3.2: Fix allowReserved #4900
Conversation
We want it to apply only when percent-encoding applies: * in: path * in: query * in: cookie [no style- deafult is form] * in: cookie, style: form But not: * in: header * in: cookie, style: cookie
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good clarification, thanks
Can we get a separate issue for the followup schema change so we don't lose it? I'm not sure I understand enough to create the issue. |
I can provide the schema changes to this PR. |
@lornajane I added #4598 (comment) to the schema-tracking issue that I know @karenetheridge is already following. |
"This field only applies to.." -- is that intending to say that other combinations of properties are ILLEGAL? or simply that if they're there, they are ignored? If the latter, then there are no schema changes to be made here. |
@karenetheridge the "only applies" language has been there since 3.0.0, we're only broadening it's applicability a bit. So... whatever it meant before? I think we have interpreted that as "ignore", but I'm not 100% sure. Ignoring is it reasonable-ish, particularly with the new wording, as there are no reserved characters to allow for the field combinations to which it does not apply. (TL;DR: don't know) |
I feel like we can't add exclusions to the schema here, at least not until 4.0 when breaking changes are allowed. |
We want it to apply only when percent-encoding applies:
in: path
in: query
in: cookie
[nostyle
- deafult isform
]in: cookie, style: form
But not:
in: header
in: cookie, style: cookie
The schema changes needed for this are a bit complex to handle
in: "cookie"
with both nostyle
, and with an expicitstyle: "form"
.