swagger-editor: Swagger editor won't put false boolean values in the URL for "try this operation"
The segment in question is
parameters:
name: debug
in: query
description: |
Parameter must be included as part of the URI. If set to true, ERROR
message will return full entity response message.
** keep off if performance is a consideration **
required: false
type: boolean
default: false
allowEmptyValue: false
Our api won’t allow requests with an empty debug value. I would just like to be able to pass “false” in, but nothing I tried will allow it. Changing it to true makes it work just fine, but there are performance considerations with that feature. Changing the value to false in the dropdown menu just makes it an empty string rather than false and the response returns an error because we passed in an empty value for debug.
GET http://{url}/v1/stores?debug= HTTP/1.1
Adding “allowEmptyValue: false”, changing required to true, and adding “default: false” haven’t helped. Is there a way around this?
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 1
- Comments: 22 (8 by maintainers)
can confirm I am still hitting this issue.
It doesn’t put false boolean values into bodies neither.
@zoharsanchez, this bug may still exist in the 2.x series of the editor, as that series is no longer under development. If you use editor version 3 (found at http://editor.swagger.io/), you should be clear of this problem 😄
Closing as should be fixed. File a new ticket if not.
Same here. I wish that would be possible. It doesn’t show the properties in the model example list.