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

How to set throwAll? #355

Open
littleKitchen opened this issue Dec 3, 2021 · 0 comments
Open

How to set throwAll? #355

littleKitchen opened this issue Dec 3, 2021 · 0 comments

Comments

@littleKitchen
Copy link

When I try to do like this :

var result = v.validate(json, MessageSchema,{throwAll:true})

I can get the following result from the console:

1

If I remove "{throwAll:true}"
The ValidatorResult like this:
2

Please Help

by the way, there is no "valid" property in ValidatorResult, am I missing something in the code?

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

No branches or pull requests

1 participant