icerockdev / moko-network

Network components with codegeneration of rest api for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev
Apache License 2.0
151 stars 29 forks source link

anyOf support #102

Closed Alex009 closed 3 years ago

Alex009 commented 3 years ago

https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not/ now we support oneOf by convert into JsonElement. of anyOf i think we should convert to JsonObject at start, or generate one big model with all fields, but optional