Allow passing validators without arguments as strings instead of strings wrapped in an array #853
Replies: 2 comments 1 reply
-
This would work yes, but lose a bit of consistency, if there are more Might be worth looking into it to make use of the current syntax, so |
Beta Was this translation helpful? Give feedback.
-
Totally get your point about wondering why one is a string and the other is an array, even though to me it feels natural: we would only need to wrap a validator into an array to pass any arguments it needs. |
Beta Was this translation helpful? Give feedback.
-
Instead of:
... why not simplify it to the following form with a simple check whether given validation item is a string or an array? I believe this can be achieved in a backwards-compatible way.
Beta Was this translation helpful? Give feedback.
All reactions