You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When validating a request using an OpenAPI specification that contains a Parameter definition as in this example:
parameters:
- in: query
name: filter
style: deepObject
allowReserved: true
schema:
type: object
properties:
filters:
oneOf:
-
type: object
required:
- max
properties:
max:
type: number
-
type: object
required:
- min
properties:
min:
type: number
and we pass correct query parameter value: filter[filters][min]=1 library does not try choose suitable variant under oneOf and return error:
1) League\OpenAPIValidation\Tests\FromCommunity\Issue222Test::testIssue140
League\OpenAPIValidation\PSR7\Exception\Validation\InvalidQueryArgs: Value "{
"filters": {
"min": "1"
}
}" for argument "filter" is invalid for Request [get /list]
The text was updated successfully, but these errors were encountered:
When validating a request using an OpenAPI specification that contains a Parameter definition as in this example:
and we pass correct query parameter value:
filter[filters][min]=1
library does not try choose suitable variant underoneOf
and return error:The text was updated successfully, but these errors were encountered: