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
Email address validation can be tricky.
Should there be an explicit validator rule for email address strings?
There may also be some performance benefit to validate by code rather than by regex.
These could be well-tested regex patterns, or special constant string values that the @Matching rule checks for, and invokes non-regex logic for faster validation.
The text was updated successfully, but these errors were encountered:
Email address validation can be tricky.
Should there be an explicit validator rule for email address strings?
There may also be some performance benefit to validate by code rather than by regex.
Proposed API
Alternatives
Rather than creating separate annotations for each, provide constants for special cases:
These could be well-tested regex patterns, or special constant string values that the
@Matching
rule checks for, and invokes non-regex logic for faster validation.The text was updated successfully, but these errors were encountered: