swagger-core icon indicating copy to clipboard operation
swagger-core copied to clipboard

Request URL includes empty query parameters

Open lluu opened this issue 12 years ago • 3 comments

Swagger UI generates empty &s in the Request URL, for example: https://test.com/v2/interactions?contextId=1&limit=20&offset=0&& This happens when a REST API supports multiple query params, the user does not need to specify all params. The request URL does not hurt the functionality, but it just looks confusing, especially for APIs that have lots of query params, and the &s sometimes would show up in the middle.

lluu avatar Mar 18 '14 19:03 lluu

Shouldn't this be opened on Swagger-UI?

webron avatar Mar 18 '14 20:03 webron

Hi, I believe this has been fixed in issue https://github.com/wordnik/swagger-js/issues/82. Can you please see that you're using master from swagger-ui/dist, or version 2.0.12 or later?

fehguy avatar Mar 19 '14 01:03 fehguy

please reopen in swagger-ui if still an issue.

fehguy avatar Mar 20 '14 04:03 fehguy