-
Notifications
You must be signed in to change notification settings - Fork 356
bug: type order in 'allOf' has an impact #712
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
I forget to mention version:
|
@kroc702 thanks for the report. Based on your schema provided it seems no input data will be valid ever as the a single value cannot be |
Well it's a choice, your choice ;) We just need a consistent behavior with all types and order shouldn't impact behavior of any/all/oneOf. |
@kroc702 I now realise how the It seems the issue can be reproduced in the I would recommend to either update to version |
Hi, and thank to keep track of this issue. I'm not sure what "not planned" mean... It's fixed in version 6.x ? |
Hello,
When validate with multiple schema using 'allOf', definition order has a behavior impact.
cf attached code to test
testSchemaValidator2.zip
Correct:
reverse order lead to incorrect validation:
The text was updated successfully, but these errors were encountered: