Skip to content

Conversation

@srivastava-diya
Copy link
Contributor

@srivastava-diya srivastava-diya commented Jan 5, 2026

This PR explores handling the anyOf discriminator case where a discriminator is detected but none of the alternatives match.

Issue : #94

  • The approach evaluates validation failures at the discriminator location for each alternative, generates the corresponding error messages, and combines them into a single error. This preserves useful context from each alternative while avoiding silent failures when discrimination does not resolve to a match.

  • The implementation removes the assumption of a single-property discriminator and works with the full discriminator property set, keeping localization considerations in mind.

@srivastava-diya
Copy link
Contributor Author

hey @jdesrosiers,
I have made a new PR in the draft-1 branch, have a look at it whenever you have time

@jdesrosiers jdesrosiers merged commit 7312448 into hyperjump-io:draft-1 Jan 5, 2026
2 checks passed
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.

2 participants