Improve validation when dealing with non-strings (#5861)
* Improve validation when dealing with non-strings validator@5.0.0+ has stopped coercing input values as strings and since version 4, the library has been printing deprecation notices everytime a non-string is passed to it. All `validate` functions now correctly handle theses cases by delegating this work to lodash functions. * Coerce number values when validating
Showing
with
90 additions
and
16 deletions
-
Please register or sign in to post a comment