Open ngirot opened 4 years ago
I have the same issue. Interestingly, this wrong "oneOf" property is not inlcuded again, if you would for example extend the "Cat" model block in your screenshot or if you open the "Pet" model definiton and click on "Cat". When I generated Java Classes from that schema, he got the hierarchical dependency right, so I think the defintion itself should be correct.
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition:
Describe the bug you're encountering
When I try to use both anyOf and oneOf, the generated ui mix up the oneOf into a wrong type.
To reproduce...
Steps to reproduce the behavior: Use the yaml below in the online editor, having 4 types :
Then the Dog type contains a OneOf with all its sibling types and itself (Cat, Dog and RichDog).
Expected behavior
Not to see a wrong oneOf value in the Dog type.
Screenshots