-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Validate without applying default values #682
Comments
What's the use case ? |
My default values varies between different contexts. |
Do you still need coercion ? |
Yes, i would like to be able to use it with other options like |
OK why not, let's go for a |
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions. |
I need to be able to tune if a want the joi default values to be applied or not when validating my data.
I was thinking about an option "ignoreDefaults":
joi.validate(data, schema, { ignoreDefaults: true })
.I would like to know what do you think about it before pushing a PR.
Thanks.
The text was updated successfully, but these errors were encountered: