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 Joi = require('@hapi/joi'); const schema = Joi.array().ordered( Joi.string().required(), Joi.number().default(0), Joi.number().default(6), ).required(); const validationResult = schema.validate(['test']); console.log(validationResult.value);
['test']
['test', 0, 6]
The text was updated successfully, but these errors were encountered:
@hueniverse Can I take up this issue to work on?
Sorry, something went wrong.
Would love to see this fixed ! 😄
hueniverse
Successfully merging a pull request may close this issue.
Support plan
Context
What are you trying to achieve or the steps to reproduce?
What was the result you got?
['test']
What result did you expect?
['test', 0, 6]
The text was updated successfully, but these errors were encountered: