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

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