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
number.multiple() accepts only integers (throws exception). It neither accepts floats/decimals nor does it accept refs.
So, it accepts number.multiple(2), but does not accept number.multiple(2.5).
It also does not accept number.multiple(Joi.ref('anotherKey')).
It seems the code here explicitly throws a exception for anything non-integer.
Is this by design? Or a bug?
If it is by design, I am wondering why is it so, and also in such case should it not send the error gracefully for validate call instead of throwing exception!
The text was updated successfully, but these errors were encountered:
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.
number.multiple() accepts only integers (throws exception). It neither accepts floats/decimals nor does it accept refs.
So, it accepts number.multiple(2), but does not accept number.multiple(2.5).
It also does not accept number.multiple(Joi.ref('anotherKey')).
It seems the code here explicitly throws a exception for anything non-integer.
Is this by design? Or a bug?
If it is by design, I am wondering why is it so, and also in such case should it not send the error gracefully for validate call instead of throwing exception!
The text was updated successfully, but these errors were encountered: