Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle duplicate OneOf elements #90

Closed
Tomboyo opened this issue Aug 9, 2023 · 1 comment
Closed

Handle duplicate OneOf elements #90

Tomboyo opened this issue Aug 9, 2023 · 1 comment

Comments

@Tomboyo
Copy link
Owner

Tomboyo commented Aug 9, 2023

If an OAS document erroneously lists the same element twice in a OneOf definition, we should ignore duplicate entries and render the OneOf successfully.

MyType:
  oneOf:
    - $ref: Foo
    - $ref: Foo #ignore me
    - type: string
    - type: string #ignore me too
@Tomboyo Tomboyo added this to the Compositional Types milestone Aug 9, 2023
@Tomboyo
Copy link
Owner Author

Tomboyo commented Oct 19, 2023

Closing as this ticket is out of date with ADR 0002

@Tomboyo Tomboyo closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant