Skip to content

Discriminate anyOf/oneOf alternatives on objects and arrays by type - #160

Open
jdesrosiers wants to merge 1 commit into
mainfrom
discriminate-by-type
Open

jdesrosiers wants to merge 1 commit into
mainfrom
discriminate-by-type

Conversation

@jdesrosiers

Copy link
Copy Markdown
Collaborator

An object or array only discriminated by its children, so an alternative whose type doesn't match still contributed annotations and completions. Alternatives whose own type fails are now dropped unless they all fail it. A type reached through other keywords doesn't count, and other failures on the object or array itself still don't discriminate because it's usually incomplete while being edited.

An object or array only discriminated by its children, so an alternative
whose type doesn't match still contributed annotations and completions.
Alternatives whose own `type` fails are now dropped unless they all fail
it. A `type` reached through other keywords doesn't count, and other
failures on the object or array itself still don't discriminate because
it's usually incomplete while being edited.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant