Validate multi value query parameter
Issue #375
new
Hi,
I set my user_id parameter as style:form
and explode:false
.
But when call with /users?user_id=1,2,3
.
it returns error: "Parameter 'user_id' expected an array style of 'form' [explode=false]"
But according documentation it should be okay.
I've checked it fails in here. And reason looks like isMultiValueParam
in ArraySeparator
class. Because isMultiValueParam
set as false
when you set style:form
and explode:false
. In here you can see the condition.
I don't know how your test is passed in here, but it fails.
Interesting.
Could you please share your OpenAPI definition of your parameter ‘user_id’?