-
Notifications
You must be signed in to change notification settings - Fork 43
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
Strict mode #46
Comments
Did you try "*": null ? Cyri-L [email protected] ezt írta (időpont: 2016. márc. 1., K
|
The problem is that by putting "*":null you allow properties to have value == void 0, which is not equal to !hasOwnProperty. Where should I add this feature into your structure? |
Null should mean that there's no such property. Undwfined means it has one, Cyri-L [email protected] ezt írta (időpont: 2016. márc. 2., Sze
|
Thank you, unfortunately it doesn't fully work. "*":null prevents from adding unspecified keys but the errors related to those additional keys are not reported into .errors() function |
I think this should be achieved by using the property
|
How do we force strict mode on the schemas ? Meaning that unspecified keys are unauthorized ? Thanks a lot
The text was updated successfully, but these errors were encountered: