How can we improve Azure API Management?

Enable Swagger CollectionFormat = multi

It does not appear that the swagger parameters with collectionformat = multi works in the test view. The list of options should be visible in a select list (at least) but allowing users to select multiple items would be best.

example openapi:

parameters: [
{
name: "status",
in: "query",
description: "Status values that need to be considered for filter",
required: true,
type: "array",
items: {
type: "string",
enum: [
"available",
"pending",
"sold"
],
default: "available"
},
collectionFormat: "multi"
}
],

See the pet store example:
http://petstore.swagger.io/v2/swagger.json
/pet/findbystatus example.

9 votes
Vote
Sign in
(thinking…)
Password icon
Signed in as (Sign out)
You have left! (?) (thinking…)
Bob Kolo shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

1 comment

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...
  • Jacob Møhl commented  ·   ·  Flag as inappropriate

    I had i similar finding. Arrays in query strings get converted to strings (which is not the same).

Feedback and Knowledge Base