-
Notifications
You must be signed in to change notification settings - Fork 99
feat: validate add email validation options
#3148
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds configurable email validation options to the validate command, allowing users to customize email format validation behavior when using JSON Schema validation with the "email" format keyword. The changes leverage unreleased features from the upstream jsonschema library.
- Adds four new command-line flags to control email validation behavior:
--email-required-tld,--email-display-text,--email-min-subdomains, and--email-domain-literal - Updates the jsonschema dependency to use an unreleased git revision with email validation features
- Adds comprehensive test coverage for the new email validation options
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
| Cargo.toml | Adds a patch to use upstream jsonschema with unreleased email validation features |
| Cargo.lock | Updates jsonschema and referencing dependencies to use the git revision |
| src/cmd/validate.rs | Implements email validation options in the validate command, including help text, flag declarations, and option builder logic |
| tests/test_validate.rs | Adds comprehensive tests for email validation including default behavior and various option combinations |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…bdomains default value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.
No description provided.