Skip to content

[BAE-171] Clarify maxItems, minItems, and uniqueItems errors#263

Open
dmiller113 wants to merge 2 commits intomainfrom
dmiller3/ajv-171-array-errors
Open

[BAE-171] Clarify maxItems, minItems, and uniqueItems errors#263
dmiller113 wants to merge 2 commits intomainfrom
dmiller3/ajv-171-array-errors

Conversation

@dmiller113
Copy link
Copy Markdown

Context

Previously, those three errors for keywords attributed to the array itself and not items inside it produced messages that incorporated their keyword resulting in confusing error messages such as /foo: MINITEM must not be MORE than 3 items. These changes clarify the error messages produced for maxItems, minItems, and uniqueItems errors.

Changeset

Marked as minor due to the change of formatting for maxItems, minItems, and uniqueItems errors.

Issue

See: #171

@atlassian
Copy link
Copy Markdown

atlassian Bot commented May 2, 2026

To enable Rovo Dev code reviews, link your GitHub account to your Atlassian account.

This is a one-time task that takes less than a minute. Once your account is linked, resubmit the pull request to trigger a code review.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 2, 2026

πŸ¦‹ Changeset detected

Latest commit: 804a81f

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 70.07%. Comparing base (c6d3119) to head (804a81f).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #263      +/-   ##
==========================================
+ Coverage   68.80%   70.07%   +1.26%     
==========================================
  Files          19       20       +1     
  Lines         638      665      +27     
  Branches      117      125       +8     
==========================================
+ Hits          439      466      +27     
  Misses        195      195              
  Partials        4        4              

β˜” 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.
  • πŸ“¦ JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dmiller113 dmiller113 changed the title [AJV-171] Clarify maxItems, minItems, and uniqueItems errors [BAE-171] Clarify maxItems, minItems, and uniqueItems errors May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants