-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Is it expected that email validation is a bit incomplete? #471
Comments
That is deliberately simplistic, but I am open to extending it. From the spec:
|
Perhaps, as a feature, have extended email validation using https://github.com/johnstonskj/rust-email_address? Also, with the custom keyword/format support, is there an ability to override the built-in keywords/formats should the user want a more robust implementation? |
Great idea! I am inclined to have some "full" feature (enabled by default) that will include extra dependencies, mainly for format validation. This is basically the idea from #470 and there are no blockers to implement it and include a more robust email validation. I'd be happy to review a PR for this, otherwise, I'll take a look at it in a few weeks.
Yep, overridden keywords & formats have the preference |
In https://github.com/Stranger6667/jsonschema-rs/blob/79e35a2012e49ee7af58c6f8b9b10ff2ff0b0dff/jsonschema/src/keywords/format.rs#L122-L140 I see that email validation doesn't check for non-printable characters and explicitly says that domain validation is not done
The text was updated successfully, but these errors were encountered: