mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-19 02:47:05 +00:00
[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:
@@ -35,5 +35,8 @@ data class Category (
|
||||
@field:JsonProperty("name")
|
||||
val name: kotlin.String? = null
|
||||
|
||||
)
|
||||
) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,5 +39,8 @@ data class ModelApiResponse (
|
||||
@field:JsonProperty("message")
|
||||
val message: kotlin.String? = null
|
||||
|
||||
)
|
||||
) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -65,5 +65,6 @@ data class Order (
|
||||
@JsonProperty(value = "delivered") delivered("delivered"),
|
||||
@JsonProperty(value = "unknown_default_open_api") @JsonEnumDefaultValue unknown_default_open_api("unknown_default_open_api");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -68,5 +68,6 @@ data class Pet (
|
||||
@JsonProperty(value = "sold") sold("sold"),
|
||||
@JsonProperty(value = "unknown_default_open_api") @JsonEnumDefaultValue unknown_default_open_api("unknown_default_open_api");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -35,5 +35,8 @@ data class Tag (
|
||||
@field:JsonProperty("name")
|
||||
val name: kotlin.String? = null
|
||||
|
||||
)
|
||||
) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -60,5 +60,8 @@ data class User (
|
||||
@field:JsonProperty("userStatus")
|
||||
val userStatus: kotlin.Int? = null
|
||||
|
||||
)
|
||||
) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user