Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EmailValidator limits the user length to be <= 64 #1040

Closed
sangharshgautam opened this issue May 13, 2024 · 2 comments
Closed

EmailValidator limits the user length to be <= 64 #1040

sangharshgautam opened this issue May 13, 2024 · 2 comments

Comments

@sangharshgautam
Copy link

Hi,

I see that the EmailValidator is limiting the user length in an email to be less than or equal to 64 Ref,

I was wondering if there is a reference to any standard being used here.

The RFC 4.1.2 listed on on https://json-schema.org/understanding-json-schema/reference/string#built-in-formats)
does not suggest any such limitation.

Please can you advice as this is being reported as a bug in our application which uses json-schema-validator library,

Best regards,
Sangharsh

image

@stevehu
Copy link
Contributor

stevehu commented May 13, 2024

I think it is implemented based on common sense. I haven't seen any email username longer than 64, do you have any use case that deals with longer email? If there is a valid use case, we can adjust the validation rule. Thanks.

@justin-tay
Copy link
Contributor

RFC 5321 in section 4.5.3.1.1

The maximum total length of a user name or other local-part is 64 octets.

@stevehu stevehu closed this as completed May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants