Closed ljle closed 4 years ago
Bug is in joi: https://github.com/hapijs/joi/issues/2168
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.
Context
What are you trying to achieve or the steps to reproduce ? I'm trying to validate that a date string follows a format, but it throws no error when I use it with Joi.assert for numbers that are strings.
https://runkit.com/ljle/joi-joi-date-potential-bug-with-number-strings
If I run it with something like
100x
or1-1
, it does throw the error.Which result you had ?
What did you expect ? A ValidationError thrown