-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
Description
Hi,
I have an OpenAPI operation that looks as follows
"/test/array": {
"get": {
"operationId": "ArrayTest",
"parameters": [
{
"name": "value",
"in": "query",
"style": "form",
"schema": {
"type": "array",
"items": {
"type": "string"
}
},
"explode": true
}
],
"responses": {
}
}
},
In my understanding, this should support one or many string elements passed to it in the query, so both the below queries should be considered correct
.../test/array?value=foo
=> ["foo"].../test/array?value=foo&value=bar
=> ["foo", "bar"]
When running this however, the single element variant fails validation in the middleware which I think is a bug?
Thanks
Chris