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
Using
validate: { type: "form", body: { start: Joi.date().iso().greater("now"), } }
The form input of start="2018-10-10T10:00" or start="2018-10-10T10:00Z" both lead to
start="2018-10-10T10:00"
start="2018-10-10T10:00Z"
child "start" fails because ["start" must be a valid ISO 8601 date]
However Joi.validate("2018-10-10T10:00", Joi.date().iso().greater("now")) => error === null
Joi.validate("2018-10-10T10:00", Joi.date().iso().greater("now"))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Using
The form input of
start="2018-10-10T10:00"
orstart="2018-10-10T10:00Z"
both lead toHowever
Joi.validate("2018-10-10T10:00", Joi.date().iso().greater("now"))
=> error === nullThe text was updated successfully, but these errors were encountered: