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

Support the discriminator with anyOf #150

Closed
muehmar opened this issue Oct 17, 2023 · 0 comments · Fixed by #241
Closed

Support the discriminator with anyOf #150

muehmar opened this issue Oct 17, 2023 · 0 comments · Fixed by #241
Labels
new feature Adds a new functionality
Milestone

Comments

@muehmar
Copy link
Owner

muehmar commented Oct 17, 2023

Even though with anyOf and a discriminator it might be technically possible to have more than one valid schema, the discriminator tells which schema was actually used. This should be supported as well.

If a discriminator is used with anyOf, the assumption is that it is used semantically like a oneOf composition but technically anyOf is used as more than one schema might be valid at a time. Therefore, the generated code will be the same as for oneOf compositions but allows more than one schema be valid at the same time.

@muehmar muehmar added enhancement Simple enhancement but not really a new functionality new feature Adds a new functionality and removed enhancement Simple enhancement but not really a new functionality labels Oct 17, 2023
@muehmar muehmar added this to the Version 3.0.0 milestone Oct 19, 2023
muehmar added a commit that referenced this issue Jan 7, 2024
muehmar added a commit that referenced this issue Jan 10, 2024
muehmar added a commit that referenced this issue Jan 21, 2024
muehmar added a commit that referenced this issue Jan 21, 2024
muehmar added a commit that referenced this issue Jan 22, 2024
Issue: #150
muehmar added a commit that referenced this issue Jan 22, 2024
muehmar added a commit that referenced this issue Jan 22, 2024
muehmar added a commit that referenced this issue Jan 22, 2024
muehmar added a commit that referenced this issue Jan 22, 2024
Issue: #150
muehmar added a commit that referenced this issue Jan 22, 2024
muehmar added a commit that referenced this issue Jan 23, 2024
muehmar added a commit that referenced this issue Jan 23, 2024
muehmar added a commit that referenced this issue Jan 23, 2024
muehmar added a commit that referenced this issue Jan 23, 2024
@muehmar muehmar linked a pull request Jan 23, 2024 that will close this issue
muehmar added a commit that referenced this issue Jan 23, 2024
muehmar added a commit that referenced this issue Jan 23, 2024
muehmar added a commit that referenced this issue Jan 23, 2024
muehmar added a commit that referenced this issue Jan 30, 2024
@muehmar muehmar closed this as completed Jan 30, 2024
muehmar added a commit that referenced this issue Jan 31, 2024
muehmar added a commit that referenced this issue Feb 5, 2024
muehmar added a commit that referenced this issue Feb 5, 2024
muehmar added a commit that referenced this issue Feb 5, 2024
muehmar added a commit that referenced this issue Feb 5, 2024
muehmar added a commit that referenced this issue Feb 5, 2024
muehmar added a commit that referenced this issue Feb 10, 2024
muehmar added a commit that referenced this issue Feb 12, 2024
muehmar added a commit that referenced this issue Mar 1, 2024
muehmar added a commit that referenced this issue Mar 1, 2024
muehmar added a commit that referenced this issue Mar 1, 2024
muehmar added a commit that referenced this issue Mar 6, 2024
muehmar added a commit that referenced this issue Mar 31, 2024
muehmar added a commit that referenced this issue Mar 31, 2024
muehmar added a commit that referenced this issue Apr 1, 2024
muehmar added a commit that referenced this issue Apr 1, 2024
muehmar added a commit that referenced this issue Apr 2, 2024
muehmar added a commit that referenced this issue Apr 4, 2024
muehmar added a commit that referenced this issue Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Adds a new functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant