Consider replacing anyOf with allOf for enum types at least #286
Labels
status:waiting-for-author-feedback
Issue that we've responded but needs author feedback to close
type:enhancement
Enhancement request targeting an existing experience.
Milestone
In converted schema there are many places like this:
This I believe is done to express extra props. Specifically to make this type nullable for example.
While this works with
OpenAPI Generator 5.4.0
it doesn't work with many other versions including6.X
branches.6.X
branches generate complete gibberish if referenced type is enum and it is referenced viaanyOf
I'm not a great specialist in OpenAPI specs but I want to raise this discussion because replacing
anyOf
toallOf
works perfectly.So what do you think?
Steps to reproduce
Make a schema with enum.
Expected result
Actual result
The text was updated successfully, but these errors were encountered: