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

Add nullable mark support #75

Closed Alex009 closed 3 years ago

Alex009 commented 3 years ago

We have case where in specification field of model marked by required and also have nullable: true mark. in this case we should generate optional field, without default value. if required but not have nullable, or nullable: false - field should be generated as not optional.