forked from loafle/openapi-generator-original
[kotlin] better oneOf, anyOf support (#18382)
* add validteJsonElement * add oneOf support * various fixes, add tests * minor fixes * minor fixes * update data class * remove comments * array support, add test * update api client constructor * add anyOf support * add new files * fix merge * update * update * update * update
This commit is contained in:
@@ -44,5 +44,8 @@ data class Category (
|
||||
@SerialName(value = "name")
|
||||
val name: kotlin.String? = null
|
||||
|
||||
) : Parcelable
|
||||
) : Parcelable {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -48,5 +48,8 @@ data class ModelApiResponse (
|
||||
@SerialName(value = "message")
|
||||
val message: kotlin.String? = null
|
||||
|
||||
) : Parcelable
|
||||
) : Parcelable {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -90,5 +90,6 @@ data class Order (
|
||||
encoder.encodeSerializableValue(kotlin.String.serializer(), value.value)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -92,5 +92,6 @@ data class Pet (
|
||||
encoder.encodeSerializableValue(kotlin.String.serializer(), value.value)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -44,5 +44,8 @@ data class Tag (
|
||||
@SerialName(value = "name")
|
||||
val name: kotlin.String? = null
|
||||
|
||||
) : Parcelable
|
||||
) : Parcelable {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -69,5 +69,8 @@ data class User (
|
||||
@SerialName(value = "userStatus")
|
||||
val userStatus: kotlin.Int? = null
|
||||
|
||||
) : Parcelable
|
||||
) : Parcelable {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user