Validating query arguments of type array - #182
Conversation
|
@tyamahori Hi, same question as here #162 (comment) Isn't this notation valid only in deepObject serialization form ? I think we need to check this explicitly here |
|
@scaytrase This notation is valid if a query string is
Do you mean, you think |
no, I mean that deafult serealization method is
So if you want to provide query args in another format - you should specify another serialization style in your schema. From given styles I see https://swagger.io/docs/specification/serialization/ They specify |
scaytrase
left a comment
There was a problem hiding this comment.
Spec for test doesn't match test data
Note: to do this, we have to work around limitations in how PHP parses query strings containing array values. Ref: thephpleague/openapi-psr7-validator#181 Ref: thephpleague/openapi-psr7-validator#182 Ref: https://swagger.io/docs/specification/v3_0/serialization/

ref #181
Hi.
this pr makes it possible to accept query arguments of an array.
For example.
https://example.com?someKey[]=value1&someKey[]=value2
We will be able to validate
someKey[].