Skip to content

Conversation

@henriquemoody
Copy link
Member

@henriquemoody henriquemoody commented Jan 18, 2026

When calling v::validatorName(), a ValidatorBuilder is instantiated to manage the validation chain. However, users generally expect the ID to reflect the specific validator invoked rather than the internal builder class.

This commit updates Id::fromValidator() to resolve the ID from the underlying validator when it is the sole member of the ValidatorBuilder, ensuring more intuitive identification.

@codecov
Copy link

codecov bot commented Jan 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.93%. Comparing base (e83e73b) to head (a107b8c).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #1611   +/-   ##
=========================================
  Coverage     97.93%   97.93%           
- Complexity      958      960    +2     
=========================================
  Files           197      197           
  Lines          2228     2230    +2     
=========================================
+ Hits           2182     2184    +2     
  Misses           46       46           

☔ 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.

This comment was marked as outdated.

@henriquemoody henriquemoody changed the title Refactor validator's feature tests to use the catchAll function Prevent validators from generating validatorBuilder Ids Jan 26, 2026
@henriquemoody henriquemoody requested a review from Copilot January 26, 2026 11:29
@henriquemoody henriquemoody marked this pull request as ready for review January 26, 2026 11:29
Copy link

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

When calling `v::validatorName()`, a `ValidatorBuilder` is instantiated
to manage the validation chain. However, users generally expect the ID
to reflect the specific validator invoked rather than the internal
builder class.

This commit updates `Id::fromValidator()` to resolve the ID from the
underlying validator when it is the sole member of the
`ValidatorBuilder`, ensuring more intuitive identification.
@henriquemoody henriquemoody merged commit a107b8c into Respect:main Jan 26, 2026
5 of 6 checks passed
@henriquemoody henriquemoody deleted the core/id branch January 26, 2026 12:58
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