Skip to content

Conversation

@jqnatividad
Copy link
Contributor

resolves #894

@codecov
Copy link

codecov bot commented Dec 2, 2025

Codecov Report

❌ Patch coverage is 98.71795% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.38%. Comparing base (41bb498) to head (cbcc9d1).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
crates/jsonschema/src/options.rs 92.85% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #903      +/-   ##
==========================================
+ Coverage   94.32%   94.38%   +0.05%     
==========================================
  Files          78       78              
  Lines       17301    17529     +228     
==========================================
+ Hits        16319    16544     +225     
- Misses        982      985       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@codspeed-hq
Copy link

codspeed-hq bot commented Dec 2, 2025

CodSpeed Performance Report

Merging #903 will improve performances by 13.3%

Comparing jqnatividad:894-email-validation-options (cbcc9d1) with master (41bb498)

Summary

⚡ 1 improvement
✅ 60 untouched

Benchmarks breakdown

Benchmark BASE HEAD Change
evaluate[Fast/Invalid] 47.4 µs 41.8 µs +13.3%

Comment on lines 1420 to 1421
use crate::EmailOptions;
use email_address::Options as EmailAddressOptions;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this one could be extracted to module level use to avoid repeating it in every test function

Comment on lines +883 to +885
pub struct EmailOptions {
pub(crate) inner: EmailAddressOptions,
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be nice to have an API to configure the actual options, otherwise it feels somewhat limited for cases when the user wants to customize it. I.e. the current option would be to have that EmailAddressOptions and configure it first, so the user will need to add that crate to dependencies too + create that instance first - I'd like to avoid that.

///
/// This allows full access to all options provided by the `email_address` crate.
#[must_use]
pub fn from_options(options: EmailAddressOptions) -> Self {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From would be nice

@jqnatividad jqnatividad marked this pull request as draft December 2, 2025 12:58
- Added EmailOptions builder methods
- imported EmailOptions at module level
- Implemented From trait

Also added extensive docstrings
@jqnatividad jqnatividad marked this pull request as ready for review December 2, 2025 14:28
Copy link
Owner

@Stranger6667 Stranger6667 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@Stranger6667 Stranger6667 merged commit 9748dc1 into Stranger6667:master Dec 2, 2025
49 checks passed
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.

email validation options?

2 participants