[Schema Inaccuracy] Bad usage of anyOf
to require either or of certain properties in definitions
#2510
Labels
anyOf
to require either or of certain properties in definitions
#2510
Schema Inaccuracy
The schema is trying to use
anyOf
and therequired
property to mark that it is expected that either one property or another is presentExample endpoint definition showing the issue:
PATCH /gists/{gist_id}
Expected
For those
anyOf
not to exist.Instead, there should be 2 definitions wrapped in a
oneOf
each with one of the properties that is expected at a time.Reproduction Steps
N/A
See octokit/types.ts#534
The text was updated successfully, but these errors were encountered: