Skip to content

fix(Length): pick the violated bound when each: true - #2693

Open
official-burak wants to merge 1 commit into
typestack:developfrom
official-burak:fix-length-each-message
Open

fix(Length): pick the violated bound when each: true#2693
official-burak wants to merge 1 commit into
typestack:developfrom
official-burak:fix-length-each-message

Conversation

@official-burak

@official-burak official-burak commented Sep 2, 2026

Copy link
Copy Markdown

Thanks for the clear repro in #2692. With each: true, Length's default message was looking at the array size, so one too-long tag could be reported as too short.

I switched that choice to a failing item's character length, and added tests for both a too-long item and several too-short ones.

Checklist

  • the pull request title describes what this PR does (not a vague title like Update index.md)
  • the pull request targets the default branch of the repository (develop)
  • the code follows the established code style of the repository
    • npm run prettier:check passes
    • npm run lint:check passes
  • tests are added for the changes I made (if any source code was modified)
  • documentation added or updated
  • I have run the project locally and verified that there are no errors

Fixes

fixes #2692

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

fix: @Length with each: true on string[] reports wrong constraint in error message

1 participant