I am thinking if swagger-ui can use the following rule to draw a "include this parameter" check box for a query parameter.
When checked, then send "?parameter1", else do not send it at all. {
"in": "query",
"name": "parameter1",
"type": "boolean",
"required": false,
"enum" : [true],
"allowEmptyValue" : true
}
(1) "required" must be false
(2) "allowEmptyValue" must be true
(3) "enum" must have exactly one non-empty value
(4) "type" must be "boolean" (or "string" with a special enum, say "INCLUDE")
Not sure if this makes sense, and how hard it is to add this feature.
I still need to find out how to open an issue, this forum is the first time I post on internet.