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
More details :
I'm parsing XML files so numbers are somehow parsed in strings.
This numbers should match some emuns, so they are integers but not necessary in a range (so I cant use min / max).
What would be perfect for me is that the convert option is also used for valid
Describe the problem you are trying to fix (provide as much context as possible)
Let's assume I have this validation schema :
With this schema both of this object will be validated since Joi works with number as strings :
It's perfectly right for me, but the problem comes when I'm trying to work with the
valid()
method :Is there any way to validate the
b
object in a more elegant way than :Which API (or modification of the current API) do you suggest to solve that problem ?
Maybe add a flag to the
valid
method ?Are you ready to work on a pull request if your suggestion is accepted ?
Yes
The text was updated successfully, but these errors were encountered: