-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Spike] Investigate how to allow complex object in filter object in API Explorer #3770
Comments
An important aspect to consider: if we switch the spec of |
For having the "include" parameter in filter condition, |
url encoding of json can be done with javascript built in function |
In the open api spec (https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#encoding-object) , explanation for explode setting is,
|
spike #4141 tries to test passing complex object as uri encoded values in query params |
I though I have posted a comment, but it looks it got lost :(
|
Ah, never mind, the discussion is happening here: Please ignore my comment above and continue the discussion in the pull request. |
findings of spike:
|
All the suggestions are implemented and tested in the Spike PR, so I am closing this issue. findings of this spike are updated here as well as the linked original issue #2208. |
Originated from #2208.
Description
swagger-ui, the library powering our API Explorer, unfortunately does not support complex objects in query strings. This spike is to investigate if/how we can allow it.
Extracting from #2208 (comment) from @bajtos
Based on OAI/OpenAPI-Specification#1706 (comment) (cross-posted below), maybe we can switch filter encoding from deepObject style into JSON?
Here is an experiment we can try:
Acceptance Criteria
- [ ] Review the workaround posted by various users in #2208The text was updated successfully, but these errors were encountered: