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

any.empty instead of any.required #30

Open
kevinfarrugia opened this issue Nov 3, 2017 · 2 comments
Open

any.empty instead of any.required #30

kevinfarrugia opened this issue Nov 3, 2017 · 2 comments

Comments

@kevinfarrugia
Copy link

joi (v13.0.1) returns the type any.required while joi-browser (v13.0.1) returns type any.empty when a field that is marked as required is not completed.

@jeffbski
Copy link
Owner

jeffbski commented Nov 8, 2017

@kevinfarrugia Thanks for reporting the issue. That is very strange. I'm not sure what could cause that simply by bundling for the browser. Do you have an example you could post? Maybe put it in a gist and provide the link here? Thanks.

@kevinfarrugia
Copy link
Author

@jeffbski That was my initial impression too.

I have created a Gist: https://gist.github.com/kevinfarrugia/76f996bd385ec283bb3059d93fda7f0b.

I also updated the OP and inverted them, i.e. joi-browser returns any.required while joi returns any.empty

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

2 participants