Skip to content
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

Excess properties in invalid ValidationResult #61

Closed
djdirtycake opened this issue May 14, 2020 · 1 comment
Closed

Excess properties in invalid ValidationResult #61

djdirtycake opened this issue May 14, 2020 · 1 comment
Labels

Comments

@djdirtycake
Copy link

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"]'"

@kylef kylef added the bug label May 14, 2020
@kylef kylef closed this as completed in c065b6e May 14, 2020
@kylef
Copy link
Owner

kylef commented May 14, 2020

That looks like a bug, thank you for reporting it. c065b6e incorporates a fix for this error.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants