Skip to content

anyOf discriminator found but none of the alternatives match - #121

Merged
jdesrosiers merged 3 commits into
hyperjump-io:draft-1from
srivastava-diya:main
Jan 5, 2026
Merged

jdesrosiers merged 3 commits into
hyperjump-io:draft-1from
srivastava-diya:main

Conversation

@srivastava-diya

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

Copy link
Copy Markdown
Contributor

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.

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

Copy link
Copy Markdown
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