[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 Bird (
@field:JsonProperty("color")
val color: kotlin.String? = null
)
) {
}

View File

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

View File

@@ -73,5 +73,6 @@ data class DefaultValue (
@JsonProperty(value = "unclassified") unclassified("unclassified"),
@JsonProperty(value = "unknown_default_open_api") @JsonEnumDefaultValue unknown_default_open_api("unknown_default_open_api");
}
}

View File

@@ -39,5 +39,8 @@ data class NumberPropertiesOnly (
@field:JsonProperty("double")
val double: kotlin.Double? = null
)
) {
}

View File

@@ -67,5 +67,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

@@ -49,5 +49,6 @@ data class Query (
@JsonProperty(value = "SKIPPED") SKIPPED("SKIPPED"),
@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

@@ -31,5 +31,8 @@ data class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter (
@field:JsonProperty("values")
val propertyValues: kotlin.collections.List<kotlin.String>? = null
)
) {
}