这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@purin-dev
Copy link
Contributor

@purin-dev purin-dev commented Mar 18, 2024

Adds a new patternDescription struct tag to allow for human-readable error messages when using the pattern tag.

Error messages are formatted like expected string to be {description} - this allows the user to use their own articles while still being consistent with the other validators

…eadable validation messages when using patterns
@codecov
Copy link

codecov bot commented Mar 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.14%. Comparing base (428dcfd) to head (6a61a25).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #323   +/-   ##
=======================================
  Coverage   95.13%   95.14%           
=======================================
  Files          19       19           
  Lines        2777     2782    +5     
=======================================
+ Hits         2642     2647    +5     
  Misses         98       98           
  Partials       37       37           

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

Copy link
Owner

@danielgtaylor danielgtaylor left a comment

Choose a reason for hiding this comment

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

@purin-dev awesome feature; thank you! 👍

@danielgtaylor danielgtaylor merged commit c312351 into danielgtaylor:main Mar 18, 2024
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