-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 multiple oneOf calls that are not nested #528
Comments
Could you please provide more details about your use case so I better understand what you are going to achieve. |
Sure. I have an absolutely wretched API to document. The request has a lot of options. I'm needing to support this sort of thing: These two choices are completely independent of each other, but the only way I can get it to render correctly in redoc is with the first style of code:
I expected to be able to represent this like this when I started:
|
@viralanomaly got it! Thanks for the detailed explanation. This is rare use case and it's not so easy to fix so PR's are welcome. |
I'll see if I can find time to take a look. :) |
@RomanGotsiy, I fear this may have broken some of the oneOf logic for displaying choices (or at least it's broken on the alpha 29 you referenced, even if it wasn't that change specifically). My spec renders correctly in swagger-editor and swagger-ui, so I'm optimistic that I have the syntax correct. Do you want me to write a new issue for it? |
@viralanomaly Yes, please! |
Here you go! |
Right now, the only way to have my request show a second, unrelated oneOf selection is to do this:
I would prefer to be able to do this:
The text was updated successfully, but these errors were encountered: