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
I'm validating an array of times with
var schedule = [ '08:00', '16:00' ]; var result = Joi.validate({ schedule: schedule }, { schedule: Joi.array().includes(Joi.date().format('HH:mm')).unique().required() });
After the validation schedule becomes an array of dates when I expect only result.value.schedule to be an array of casted values.
schedule
result.value.schedule
The text was updated successfully, but these errors were encountered:
f82f421
Thanks!
Sorry, something went wrong.
Do not convert array values in place
7da4098
Fixes #502.
Thanks for reporting it.
Published.
Marsup
No branches or pull requests
I'm validating an array of times with
After the validation
schedule
becomes an array of dates when I expect onlyresult.value.schedule
to be an array of casted values.The text was updated successfully, but these errors were encountered: