Skip to content

Conversation

@jqnatividad
Copy link
Collaborator

No description provided.

@jqnatividad jqnatividad requested a review from Copilot December 2, 2025 16:45
Copy link
Contributor

Copilot AI left a 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

jqnatividad and others added 4 commits December 2, 2025 11:52
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>
Copy link
Contributor

Copilot AI left a 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.

@jqnatividad jqnatividad merged commit 5178bce into master Dec 2, 2025
17 checks passed
@jqnatividad jqnatividad deleted the validate-email-validation-options branch December 2, 2025 17:13
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

Successfully merging this pull request may close these issues.

2 participants