-
Notifications
You must be signed in to change notification settings - Fork 10
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
Invalid invalid type handling #19
Comments
Also some questions @lezhnev74
This line should some kind of schema validation step, not data validation. It's rather strange to decline data here if schema is invalid. Probably this should go to
counting data befor validating its type is unsafe (especially for php 7.2). why we expecting items in data at all? |
Also schema validation is duplicated here
and here
I hope we can leave second only, it's more obvious |
Great points!
|
|
For 1 and 3 I can update #21 removing these additional checks |
Please, go ahead, sounds good! |
Done. Raised one more question in PR |
If data type does not match schema code still tries to utilize it as a scalar value. moreother it tries utilize value itself rather than type, and this can lead to huge error texts
I'll try to fix it
The text was updated successfully, but these errors were encountered: