-
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
Multiple oneOf tags not rendering 2.0.0-alpha.29 #569
Comments
Got the issue. It's not so obvious how to fix it 😞. Until this is fixed try to omit cases when you have reference to scheme with top level But I'm curious, did it use to work with alpha.28 😐? |
I can try 28 and see. I think I was last on 26 and then jumped to 29.
|
Same behavior with 28. I had cleaned up my spec for the allOf and oneOf changes you put in, and the before for that cleanup might have hidden this issue. |
I can do it this way as a workaround, but I was hoping to not have to repeat ObjectWithAnotherOneOf everywhere now.
|
This behaviour is still present in the current release. We need to decide how this should look, perhaps we can take the existing oneOf rendering which uses the component names as labels, and make it clear that some of the fields are always there, and are siblings to the oneOf representation. |
I am using "redoc": "2.0.0-alpha.29".
I have pasted a stripped down version of my api that shows what is happening. I was expecting both sets of choices (the oneOfs) from RequestObject to be rendered, but instead I only get Single Piece Identifier and (IdentifierPart1 and IdentifierPart2). There should be another "One Of" line with another set of buttons for the choice in "ObjectWithAnotherOneOf", and "OtherThing" should be rendered all the time. Nothing from ObjectWithAnotherOneOf is being rendered.
I hope this is clear enough of an example!
The text was updated successfully, but these errors were encountered: