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

Map "object" property without internal properties to JsonObject type #67

Closed Alex009 closed 3 years ago

Alex009 commented 3 years ago

this:

UserNotification:
  type: object
  properties:
    id:
      title: ID
      type: integer
      readOnly: true
    content:
      type: object

should be:

@Serializable
public data class UserNotification (
    @SerialName("id")
    val id: kotlin.Int? = null,
    @SerialName("content")
    val content: JsonObject? = null
)