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

Joi validation from example does not work correctly #74

Open
Valeronlol opened this issue Sep 5, 2019 · 0 comments
Open

Joi validation from example does not work correctly #74

Valeronlol opened this issue Sep 5, 2019 · 0 comments

Comments

@Valeronlol
Copy link

Valeronlol commented Sep 5, 2019

The problem occurs when you try to set a default value.
For example: Joi.object().keys({ foo: Joi.number().valid([0, 1]).default(0) })
Nothing will return.
I already found another way to do this it and created PR to fix docs, just make sure I'm move in the right direction :)
#75

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