-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Proposal: dotDelimited style for query serialization. #3084
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
you can find serialization examples here, multiple types are supported |
Yes, but the proposed style is not defined. |
@OAI/tsc review request: Can we decide whether to add this or not? My sense is that we don't want to add further serialization options/complexity, but if we do it is straightforward. This issue has been open for a year and a half without attracting further support or examples of usage in existing APIs. |
Previous serialization styles have been defined in terms of uri-template syntax (although only the swagger documentation -- https://swagger.io/docs/specification/serialization/ -- explicitly provides those templates - it's not even at https://learn.openapis.org/specification/parameters.html). If we want to restrict ourselves to this, is it possible to define the newly proposed dotDelimited format in terms of uri-templates? |
I think so, just like happens with deepObject, but instead of using brackets using points, and with the addition of also allowing the serialization of deep objects and arrays. |
I couldn't find anything in RFC6570 |
I'm leaning towards advocating that we support #1502 (Support for arbitrary query strings) in 3.2, which could allow folks to experiment with new/custom serializations without us having to add more complexity to the mandatory options. |
The sense I have gotten from recent discussions in the TDC meetings is that there is already too much undefined behavior in the query string, and there are efforts to correct this (which I am nominally part of). Doesn't this only make the problem worse? |
In today's TDC call, we decided to consider a proposal for #1502, which will allow experimentation in the query string. So it will not solve this but it will allow extensions to try it out. |
Regarding
[
and]
must be urlencoded, I propose the usage of dot notation to serialize arrays and objects at query parameters.Having the following array:
It could be serailized as:
Having the following object:
It could be serailized as
And mixing both of them:
It could be serailized as
The text was updated successfully, but these errors were encountered: