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
Hey,
The below throws an error, this should return :
'the value of username is not allowed to be undefined'
var Joi = require('joi'); var schema = { username: Joi.string().required().email() }; var error = Joi.validate({}, schema, {abortEarly : false}); console.log(error);
Throws the following error:
joi/lib/string.js:168 if (value.match(regex)) { ^ TypeError: Cannot call method 'match' of undefined
This will also throw an error
var Joi = require('joi'); var schema = { password: Joi.string().required().min(6).max(10) }; var error = Joi.validate({}, schema, {abortEarly : false}); console.log(error);
Produces the following error:
joi/lib/string.js:75 value.length <= limit) { ^ TypeError: Cannot read property 'length' of undefined
The text was updated successfully, but these errors were encountered:
8632df0
Sweet..
Sorry, something went wrong.
hueniverse
No branches or pull requests
Hey,
The below throws an error, this should return :
'the value of username is not allowed to be undefined'
Throws the following error:
This will also throw an error
Produces the following error:
The text was updated successfully, but these errors were encountered: