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
When only a single validator is provided, the library internally wraps it in an object { fn: attrValidation }. But when an array of validators is provided, the library doesn't do this and expects each item to be already wrapped in this structure.
The text was updated successfully, but these errors were encountered:
I have an array of custom validator functions and tried this in the model:
But it only works if I do this:
When only a single validator is provided, the library internally wraps it in an object
{ fn: attrValidation }
. But when an array of validators is provided, the library doesn't do this and expects each item to be already wrapped in this structure.The text was updated successfully, but these errors were encountered: