New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validation of minItems/maxItems array query parameter options #10
Comments
@seseloos I will implement it soon or later My upcoming pull request will contain:
|
@oloose thank you making up this feature request and enhancement for the APIKit |
@donutloop sounds good to me. Thanks for taking care of the enhancement. I am looking forward to see the result 👍 |
@seseloos I started working on this |
@seseloos still working on it |
Ref: #16 |
Done - Thank you @donutloop |
I am using the
minItems
andmaxItems
options for an array query parameter. The request validation does not automatically respond with a400 Bad Request
as I would expect when sending a request with less or more values as defined by the options.Example request:
/pet/findByTags?tags=test1
(less than minItems)/pet/findByTags?tags=test1,test2,test3,test4,test5,test6
(more than maxItems)Version Info
OpenAPIv2 definition
Expected behaviour
Server request validation automatically rejects the request and responds with
400 Bad Request
.The text was updated successfully, but these errors were encountered: