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
When you add an argument that can have a value from a list of choices, the type of the argument is string but the generated swagger docs indicate that the argument is a collectionFormat: multi.
I ran across this when trying to validate a generated swagger.json
The text was updated successfully, but these errors were encountered:
deepakunni3
changed the title
parameters that can have value from a list of choices should be treated as string
arguments that can have value from a list of choices should not have collectionFormat in generated swagger docs
Jul 6, 2018
flask-restplus version: 0.11
https://github.com/noirbizarre/flask-restplus/blob/master/flask_restplus/reqparse.py#L287
When you add an argument that can have a value from a list of choices, the type of the argument is string but the generated swagger docs indicate that the argument is a
collectionFormat: multi
.According to Swagger 2.0 specification (https://swagger.io/docs/specification/2-0/describing-parameters/)
collectionFormat
is only applicable fortype: array
.I ran across this when trying to validate a generated swagger.json
The text was updated successfully, but these errors were encountered: