Closed
Description
Hello,
why can't I use the allowMultiple Fieldname described here:
https://github.com/wordnik/swagger-spec/blob/master/versions/1.2.md#524-parameter-object
Actually I want the multiple option box from:
http://petstore.swagger.wordnik.com/#!/pet/findPetsByStatus
There are predefined values for a parameter with an enum "available, pending, sold":
{
"path":"/pet/findByStatus",
"operations":[
{
"method":"GET",
"summary":"Finds Pets by status",
"notes":"Multiple status values can be provided with comma seperated strings",
"type":"array",
"items":{
"$ref":"Pet"
},
"nickname":"findPetsByStatus",
"authorizations":{
},
"parameters":[
{
"name":"status",
"description":"Status values that need to be considered for filter",
"defaultValue":"available",
"required":true,
"type":"string",
"paramType":"query",
"allowMultiple":true,
"enum":[
"available",
"pending",
"sold"
]
}
],
"responseMessages":[
{
"code":400,
"message":"Invalid status value"
}
]
}
]
},