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
const schema = Joi.string().uri({ allowRelative: true, domain: { minDomainSegments: 2 }}); await schema.validate('test.com');
When we use both allowRelative:true and domain option, we have some problem in validation, http://test.com is valid but test.com throws error
allowRelative:true
domain
http://test.com
test.com
Error: Invalid input: domain must be a string
allowRelative and domain must be works together and test.com is a valid relative uri but test is not a valid with the given schema
allowRelative
test
The text was updated successfully, but these errors were encountered:
5cd0366
hueniverse
Successfully merging a pull request may close this issue.
Support plan
Context
What are you trying to achieve or the steps to reproduce?
When we use both
allowRelative:true
anddomain
option, we have some problem in validation,http://test.com
is valid buttest.com
throws errorWhat was the result you got?
What result did you expect?
allowRelative
anddomain
must be works together andtest.com
is a valid relative uri buttest
is not a valid with the given schemaThe text was updated successfully, but these errors were encountered: