Skip to content

Add FormatterModifier to message rendering and expand test coverage#1690

Merged
henriquemoody merged 1 commit intoRespect:3.0from
henriquemoody:formatter_modifier
Feb 10, 2026
Merged

Add FormatterModifier to message rendering and expand test coverage#1690
henriquemoody merged 1 commit intoRespect:3.0from
henriquemoody:formatter_modifier

Conversation

@henriquemoody
Copy link
Member

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)

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)
@codecov
Copy link

codecov bot commented Feb 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.47%. Comparing base (eedce8f) to head (305a7d1).
⚠️ Report is 1 commits behind head on 3.0.

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

@henriquemoody henriquemoody merged commit 305a7d1 into Respect:3.0 Feb 10, 2026
7 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.

1 participant