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
This returns a FailureReason.FAILED_CUSTOM_VALIDATION. There should be a failure reason to match the validation here done on this domain. Perhaps a FailureReason.INVALID_TOP_LEVEL_DONAIN would be appropriate.
Additionally, if passing my.email@example to the above validation, it still returns the FAILED_CUSTOM_VALIDATION reason. However, there is already an existing "MISSING_TOP_LEVEL_DOMAIN" that should be used here instead when used in conjunction with the requireOnlyTopLevelDomain(), as this implies that a TLD is required.
Finally, as a side thought on this, it would be nice to be able to add a custom failure reason, perhaps along with the custom validator?
Is this bug report about an incorrectly validated email address?
If no, please describe the bug
When validating an email address in the following manner, the validation failure message is incorrect:
This returns a
FailureReason.FAILED_CUSTOM_VALIDATION
. There should be a failure reason to match the validation here done on this domain. Perhaps aFailureReason.INVALID_TOP_LEVEL_DONAIN
would be appropriate.Additionally, if passing
my.email@example
to the above validation, it still returns theFAILED_CUSTOM_VALIDATION
reason. However, there is already an existing "MISSING_TOP_LEVEL_DOMAIN" that should be used here instead when used in conjunction with therequireOnlyTopLevelDomain()
, as this implies that a TLD is required.Finally, as a side thought on this, it would be nice to be able to add a custom failure reason, perhaps along with the custom validator?
Then, instead of these predicates being stored as a
Set
, they could be stored as a Map along with their failure reason.The text was updated successfully, but these errors were encountered: