datamodel-code-generator
datamodel-code-generator copied to clipboard
Use title for generating the names of objects inside anyOf/oneOf
trafficstars
Currently the root key is used, but this has the side effect of elements being named as RootItem1, RootItem2, etc 👍
@gaborbernat
Thank you for your great idea.
I think we can use the idea for other types like array, enum, etc.
What do you think about it?
I will expect to add a new CLI option for the idea. Because I wouldn't like to break the current behavior.
Sounds great to me :+1:
@gaborbernat
I added --use-title-as-name option to version 0.11.12.
Would you please check it?