Skip to content

Conversation

@srivastava-diya
Copy link
Contributor

Description

Fixes #133

Currently, when multiple type keywords apply at the same instance location (e.g. through allOf), the validator emits multiple type error messages, which results in noisy output for users.

Changes made

  • Collect all failed type keyword locations
  • Intersect allowed types across schemas
  • Emit a single consolidated type error message

Notes

  • Treats integer as a subset of number during intersection
  • Falls back to getUnknownErrorMessage("type") when no valid type remains

- Add normalization handlers
- Add error handlers
- Fix type handling and numeric count/matchCount constraints
- Update draft-04 test suite
feat(draft-04): add support for JSON Schema Draft-04 keywords

- Add normalization handlers
- Add error handlers
- Fix type handling and numeric count/matchCount constraints
- Update draft-04 test suite

A

fix normalization and error handlers

Signed-off-by: Diya <diyasrivastava2023@gmail.com>

fix: normalization and error handlers for draft-04

fix type checks

revert minimum and maximum error handler
Signed-off-by: Diya <diyasrivastava2023@gmail.com>
Signed-off-by: Diya <diyasrivastava2023@gmail.com>
@srivastava-diya srivastava-diya deleted the feature/type-handler branch January 28, 2026 04:20
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 type error messages

1 participant