-
Notifications
You must be signed in to change notification settings - Fork 13
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
Validation of email address with non ASCII character fails #14
Comments
Hi, thanks for the message. In implementing this library I have attempted to follow strictly the JSON Schema specification, which says (JSON Schema Validation, section 7.3.2:
And RFC 5321, section 4.1.2 contains the following ABNF rules:
! # $ % & ' * + - / = ? ^ _ ` { | } ~ The
I realise that in practice, many mail systems may ignore these rules and allow non-ASCII characters in mail addresses, but I feel that as an implementer of JSON Schema I have no option but to follow the specification as closely as possible. All this explanation doesn't help in your case, but you might like to try a I may consider allowing pluggable implementations of the format validations in a later version of the library, but I can't give you a timeline for that. Sorry I can't be more help, -Peter Wall |
Thanks, that was very informative. I will look into other options. |
Hi,
The json that I am trying to validate has a non ASCII character in the email field e.g. the Spanish letter "ñ" and consequently validation fails with the following error:
Here is the test code:
Is there a way around this?
The text was updated successfully, but these errors were encountered: