Add FormatterModifier to message rendering and expand test coverage#1690
Merged
henriquemoody merged 1 commit intoRespect:3.0from Feb 10, 2026
Merged
Add FormatterModifier to message rendering and expand test coverage#1690henriquemoody merged 1 commit intoRespect:3.0from
henriquemoody merged 1 commit intoRespect:3.0from
Conversation
0e5ddd7 to
93b2874
Compare
Integrate FormatterModifier into the validation message modifier chain,
enabling StringFormatter formatters to be used as pipe modifiers in
message templates (e.g., {{input|uppercase}}, {{input|mask:1-4:X}}).
This requires bumping respect/string-formatter to ^1.7.
Add feature tests for both the Formatted validator (uppercase, lowercase,
trim, number, date, creditCard, secureCreditCard, chained formatters) and
the FormatterModifier in templates (all major formatters, custom parameters,
multi-argument modifiers, and chained modifiers).
Assisted-by: Claude Code (Claude Opus 4.6)
93b2874 to
305a7d1
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 3.0 #1690 +/- ##
=========================================
Coverage 99.47% 99.47%
Complexity 979 979
=========================================
Files 193 193
Lines 2294 2294
=========================================
Hits 2282 2282
Misses 12 12 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Integrate FormatterModifier into the validation message modifier chain, enabling StringFormatter formatters to be used as pipe modifiers in message templates (e.g., {{input|uppercase}}, {{input|mask:1-4:X}}). This requires bumping respect/string-formatter to ^1.7.
Add feature tests for both the Formatted validator (uppercase, lowercase, trim, number, date, creditCard, secureCreditCard, chained formatters) and the FormatterModifier in templates (all major formatters, custom parameters, multi-argument modifiers, and chained modifiers).
Assisted-by: Claude Code (Claude Opus 4.6)