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
However, there's a bug where aliases can't be used with an OR operator (existing issue for this #766)
Seem like the only route would be avoiding an alias and defining a custom validator function which validates the email and lowercase rule. But I want to avoid this as I'd be re-creating the baked-in validation methods isEmail and isLowerCase
Package version eg. v9, v10:
v10
Issue, Question or Enhancement:
I'd like to define groups of validations from existing rules and chain them together with an
OR
clause. Something along the lines ofThe syntax above of using parentheses/brackets isn't supported so I've tried defining an alias for the
(bakedin_tag_1, bakedin_tag_2)
clause:However, there's a bug where aliases can't be used with an
OR
operator (existing issue for this #766)Seem like the only route would be avoiding an alias and defining a custom validator function which validates the
email
andlowercase
rule. But I want to avoid this as I'd be re-creating the baked-in validation methodsisEmail
andisLowerCase
validator/baked_in.go
Lines 1675 to 1678 in a947377
validator/baked_in.go
Lines 2707 to 2719 in a947377
Code sample, to showcase or reproduce:
The text was updated successfully, but these errors were encountered: