Explode a query param's properties not working correctly
Swagger 2.1.2 embedded as part of springdoc 1.3.4
I'm attempting to explode a query param object meant to express a range of years (2019-2020 for example), defined as follows:
parameters:
- name: requestParameters
in: query
required: false
style: form
explode: true
schema:
type: object
properties:
year:
maxItems: 2
minItems: 2
type: array
items:
type: integer
format: int32
However there is an issue whereas Swagger UI displays the query param as a single object Parameter containing the properties under it still, which is incorrect. With "form" and "explode" it should populate each request parameter as it's own query param. However when importing into Postman 7.22.1, the Params are all listed separately, which is correct (although Postman is still encapsulating it as a single element object as &year=[<int>,<int>], not exploded &year=<int>&year=<int>
Swagger UI presentation:
requestParameters
object
(query)
=
{
"year": [
0
]
}
Should be:
year
array[integer]
(query)
=
{
[
0,0
]
}
Similarly, other properties defined under the "requestParameters" Parameter in the spec are enums and their enum values/items are not fully exploded and elevated to Parameters.