Skip to content

Swagger UI - Blank parameter input results in paramter being ommited from URL #81

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

Closed
caroseuk opened this issue Jul 3, 2014 · 2 comments

Comments

@caroseuk
Copy link

caroseuk commented Jul 3, 2014

When using swagger-ui to query an API, if you supply a blank parameter, the parameter is not included in the API query URI.

Currently when querying API with a blank parameter "query=":
http://api.server.com/REST/?query2=text&query3=text

Is it possible to make this configurable, so that if the parameter is provided as blank the URL still contains the blank parameter:
http://api.server.com/REST/query=&query2=text&query3=text

Spoke to Tonytam on IRC who advised me to raise this as a bug

Thanks

fehguy added a commit that referenced this issue Sep 8, 2014
fehguy added a commit that referenced this issue Sep 8, 2014
@webron
Copy link
Member

webron commented Sep 19, 2014

This has been resolved in Swagger 2.0 but not documented. This comment is basically a reminder to myself to add the documentation to it.

@webron
Copy link
Member

webron commented Mar 27, 2016

Closing in favor of #611.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants