wuseal / JsonToKotlinClass

🚀 Plugin for Android Studio And IntelliJ Idea to generate Kotlin data class code from JSON text ( Json to Kotlin )
GNU General Public License v3.0
3.1k stars 176 forks source link

OneOf results in incomplete generation #416

Open Frontrider opened 1 year ago

Frontrider commented 1 year ago

If the generator encounters oneOf or similar, then it will drop everything from that point. I expect it to still produce the rest of the classes, so I can fill in the blanks myself.

Trying to get this schema into data classes, I get the root+ an empty object. https://gist.github.com/studds/b9dbba056eaaaf42dfe70c191c12d848