We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello. Don't know if it's intended or not, but invalid validation result contains all the properties on the same level, not only missing ones.
Here's an example (both 0.5.0 release and latest commit 2f0facb):
validate(["price": 34.99, "name": "test"], schema: ["required": ["price", "name", "id"]]) ▿ ValidationResult ▿ invalid : 1 element - 0 : "Required properties are missing '["price", "name", "id"]'"
validate(["price": 34.99, "name": "test"], schema: ["required": ["price", "name", "id"]])
The text was updated successfully, but these errors were encountered:
c065b6e
That looks like a bug, thank you for reporting it. c065b6e incorporates a fix for this error.
Sorry, something went wrong.
No branches or pull requests
Hello.
Don't know if it's intended or not, but invalid validation result contains all the properties on the same level, not only missing ones.
Here's an example (both 0.5.0 release and latest commit 2f0facb):
validate(["price": 34.99, "name": "test"], schema: ["required": ["price", "name", "id"]])
▿ ValidationResult
▿ invalid : 1 element
- 0 : "Required properties are missing '["price", "name", "id"]'"
The text was updated successfully, but these errors were encountered: