-
Notifications
You must be signed in to change notification settings - Fork 701
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
Fixed validation for Request parameter that is an array without default value #910
Conversation
…of strict mode If Request parameter is an array without default value, then an error should be thrown that "parameter value is not an array" in strict mode
can you add a failing test case? |
@lsmith77, do you want me to add test case that would fail before this fix is applied? |
you can do it in this PR .. or even better as a separate PR.
|
Ok, will do it |
ping |
Sorry, was too busy this weekend. |
Test is added, also separate PR with only failing test is created #915 |
hmm it seems like the commit in this PR doesn't match the on in #915 .. |
Well, i cherry-picked commit ec90c29 from 'patch-1' branch into the 'patch-1-test-only' |
hmm not sure why the commit hash is different then .. anyway .. looks good in manual inspection .. thanks! |
Fixed validation for Request parameter that is an array without default value
Ups, seems i had deleted by accident one test case eugef@ec90c29#diff-fbad238da345246612fd46bb2c0323c8L373 What is the best way to add it back? Create another PR? |
yeah .. another PR .. thx |
Done #916, please merge |
If Request parameter is an array without default value and parameter is not set - then an error should be thrown that "parameter value is not an array".
Steps to reproduce:
Actual result (before the fix):
Expected result (with the fix):
If empty array should be a default value if parameter is not set, then 'strict' should be set to false, example: