We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
hi, When using min(0), the describe method returns no argument for the rule.
{ "rules": [ { "name": "min" }] }
when i should have this
{ "rules": [{ "name": "min", "arg": 0 }] }
After investigating, I think that's because the condition should be false only for an undefined argument.
joi/lib/any.js
Line 499 in 2340d14
The text was updated successfully, but these errors were encountered:
fix hapijs#454 : handle 0 and null arguments
4308deb
d50a75c
No branches or pull requests
hi,
When using min(0), the describe method returns no argument for the rule.
when i should have this
After investigating, I think that's because the condition should be false only for an undefined argument.
joi/lib/any.js
Line 499 in 2340d14
The text was updated successfully, but these errors were encountered: