-
Notifications
You must be signed in to change notification settings - Fork 775
Prevent validators from generating validatorBuilder Ids
#1611
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
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
1d03747 to
1a0d317
Compare
1a0d317 to
501829e
Compare
catchAll functionvalidatorBuilder Ids
501829e to
a72b3eb
Compare
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.
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.
a72b3eb to
a107b8c
Compare
When calling
v::validatorName(), aValidatorBuilderis 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 theValidatorBuilder, ensuring more intuitive identification.