Skip to content

fix(locale): use exact wording when issue.exact is set for length/size errors (v2) - #6278

Open
deepshekhardas wants to merge 1 commit into
colinhacks:mainfrom
deepshekhardas:fix/exact-length-error-messages-v2
Open

fix(locale): use exact wording when issue.exact is set for length/size errors (v2)#6278
deepshekhardas wants to merge 1 commit into
colinhacks:mainfrom
deepshekhardas:fix/exact-length-error-messages-v2

Conversation

@deepshekhardas

Copy link
Copy Markdown

Summary

This PR updates the error messages for exact length/size validation to use the exact wording from the issue, rather than the default messages.

Changes

  • Updated packages/zod/src/v4/locales/en.ts to use precise error messages when issue.exact is set for length/size validations

Related

This is an alternative implementation to #6242 (exact-length-error-messages) with slightly different wording.

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