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

Cannot have multiple response types for same status code #2743

Open
nithinbandaru1 opened this issue Nov 29, 2023 · 1 comment
Open

Cannot have multiple response types for same status code #2743

nithinbandaru1 opened this issue Nov 29, 2023 · 1 comment
Labels
help-wanted A change up for grabs for contributions from the community

Comments

@nithinbandaru1
Copy link

nithinbandaru1 commented Nov 29, 2023

I am doubtful that if this existing issue (#2413, #329) will be reopened, so here I open a new one.

OneOf is now supported by open-api standard. I believe this is a basic feature that would be useful for many.

I wonder how much trouble, the swagger docs now available in internet generated by .NET applications would be creating for consumers of those APIs. 🙂

https://spec.openapis.org/oas/v3.1.0#discriminator-object

@zleao
Copy link

zleao commented Mar 12, 2024

This would definitely be a very nice feature to add... even if just the support for multiple schemas for same status code.
Currently don't have the availability for it, but could definitely help on the testing part, if someone would be interested on going forward with this.

@martincostello martincostello added the help-wanted A change up for grabs for contributions from the community label Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help-wanted A change up for grabs for contributions from the community
Projects
None yet
Development

No branches or pull requests

3 participants