[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:
William Cheng
2024-05-31 12:22:27 +08:00
committed by GitHub
parent 1c7e5c4726
commit 353320cb04
648 changed files with 8996 additions and 6249 deletions

View File

@@ -35,5 +35,8 @@ data class Category (
@field:JsonProperty("name")
val name: kotlin.String? = null
)
) {
}

View File

@@ -39,5 +39,8 @@ data class ModelApiResponse (
@field:JsonProperty("message")
val message: kotlin.String? = null
)
) {
}

View File

@@ -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");
}
}

View File

@@ -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");
}
}

View File

@@ -35,5 +35,8 @@ data class Tag (
@field:JsonProperty("name")
val name: kotlin.String? = null
)
) {
}

View File

@@ -60,5 +60,8 @@ data class User (
@field:JsonProperty("userStatus")
val userStatus: kotlin.Int? = null
)
) {
}