attribute match constraints error message
When validating email format using regex, is there an easier way to show a more user friendly validation error message such as "invalid email format" rather than the default "must match the pattern ~r/[a-z...."?
I believe it can be done inside action definition, but thought I might be missing an easier way to do the same in the attribute definition.
3 Replies
We had a discussion about that here: https://discord.com/channels/711271361523351632/712035333432147989/1088140734634401935
TLDR: PR welcome, I was going to do it and then got distracted. 😅
I see. Thanks!
In the meantime, you can use the
match
validation instead of the constraint