You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe this is an issue with koa-joi-router.
I filed an issue over there too now.
They bundle their own version of Joi but I am loading 13.7.0 in my package.json.
But even with their version I did a router.Joi.validate("2018-10-10T10:00", Joi.date().iso().greater("now")) and it yielded no error.
However when running a server request against the router it is throwing an error.
But we will probably need to discuss it over here as it does not seem to be an issue with joi in general.
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
lockbot
locked as resolved and limited conversation to collaborators
Jan 9, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
non issueIssue is not a problem or requires changes
It seems the date().iso() validation is broken (despite the tests showing it should work).
Context
What are you trying to achieve or the steps to reproduce ?
iso() does not accept "2018-10-10T10:00Z" as input.
Which result you had ?
error
must be a valid ISO 8601 date
What did you expect ?
no error
The text was updated successfully, but these errors were encountered: