Page 1 of 1

[Swagger] incorrect query strings

Posted: 20 Aug 2017, 08:09
by zocka
Array-arguments are expected as <argument>[]=<value> but swagger just puts in the argument as it is.
Example: https://v4.live.maniaplanet.com/swagger ... ers_online

Appearently the array-type has to be set like

Code: Select all

"items": {
  "type": "string"
}
within

Code: Select all

{
  "name": "titleUids",
  "in": "query",
  "allowEmptyValue": false,
  "required": false,
  "type": "array"
}
(http://docs.swagger.io/spec.html#4-3-3-data-type-fields) (https://github.com/swagger-api/swagger- ... t-76741467)