Skip to content

Collapse maxProperties and minProperties error messages - #145

Merged
jdesrosiers merged 1 commit into
hyperjump-io:mainfrom
ShivaGupta-14:137-collapse-max-min-properties-message
Jan 28, 2026
Merged

jdesrosiers merged 1 commit into
hyperjump-io:mainfrom
ShivaGupta-14:137-collapse-max-min-properties-message

Conversation

@ShivaGupta-14

Copy link
Copy Markdown

Description

When multiple maxProperties or minProperties constraints fail (e.g., via allOf), produce a single message with the most restrictive constraint instead of multiple redundant messages.

Checklist

  • npm test
  • npm run lint
  • npm run type-check

Additional Notes

Screenshot

Screenshot 2026-01-27 at 2 19 27 AM

@jdesrosiers jdesrosiers left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Great job! Just one tweak I'd like to see (see inline comment).

Comment thread src/test-suite/tests/minProperties.json Outdated
@ShivaGupta-14
ShivaGupta-14 force-pushed the 137-collapse-max-min-properties-message branch from 19f5eb0 to cc22b64 Compare January 27, 2026 06:59

@jdesrosiers jdesrosiers left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good. Thanks!

@jdesrosiers
jdesrosiers merged commit c2135c8 into hyperjump-io:main Jan 28, 2026
1 check passed
@ShivaGupta-14
ShivaGupta-14 deleted the 137-collapse-max-min-properties-message branch January 28, 2026 06:05
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.

Combine messages for minProperties/maxProperties

2 participants