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've been using the new .raw() method as follows:
.raw()
Joi.date().options({ convert: true }).raw().iso()
which works correctly and the validator throws the following error on invalid input:
value must be a valid ISO 8601 date
but strangely:
Joi.date().iso().options({ convert: true }).raw()
throws the following error on invalid input:
value must be a number of milliseconds or valid date string
It seems that .options() and/or .raw() is causing the underlying flags._format to be lost. Is this the desired behavior?
.options()
flags._format
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Thanks, just in time for 5.1.0.
Sorry, something went wrong.
eff7bd3
Thanks!
Marsup
No branches or pull requests
I've been using the new
.raw()
method as follows:which works correctly and the validator throws the following error on invalid input:
but strangely:
throws the following error on invalid input:
It seems that
.options()
and/or.raw()
is causing the underlyingflags._format
to be lost.Is this the desired behavior?
Thanks in advance.
The text was updated successfully, but these errors were encountered: