You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Endpoint as uses optional state query string parameter to pick only matching values. Its optional, as I want to allow unfiltered result also. Rendered UI looks like
Everything works fine, except -- option - which causes problems.
With -- selected I get request like: https://localhost/api/v1/getdata?state=
Content & configuration
Example Swagger/OpenAPI definition:
Describe the bug you're encountering
Endpoint as uses optional
state
query string parameter to pick only matching values. Its optional, as I want to allow unfiltered result also. Rendered UI looks likeEverything works fine, except
--
option - which causes problems.With
--
selected I get request like:https://localhost/api/v1/getdata?state=
Valid requests are:
https://localhost/api/v1/getdata?state=STARTED&state=SUBMITTED
https://localhost/api/v1/getdata
It is possible to generate valid request by unselecting all the entries, but then the
--
option is misleading.I see two options to fix that:
--
from the selection box; user can generate request with no filter - by manually unselecting all the list items--
, but give it special handling:--
should deselect all other entries'The text was updated successfully, but these errors were encountered: