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:
@@ -35,5 +35,8 @@ data class Bird (
|
||||
@field:JsonProperty("color")
|
||||
val color: kotlin.String? = null
|
||||
|
||||
)
|
||||
) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -35,5 +35,8 @@ data class Category (
|
||||
@field:JsonProperty("name")
|
||||
val name: kotlin.String? = null
|
||||
|
||||
)
|
||||
) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,5 +39,8 @@ data class NumberPropertiesOnly (
|
||||
@field:JsonProperty("double")
|
||||
val double: kotlin.Double? = null
|
||||
|
||||
)
|
||||
) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -35,5 +35,8 @@ data class Tag (
|
||||
@field:JsonProperty("name")
|
||||
val name: kotlin.String? = null
|
||||
|
||||
)
|
||||
) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -31,5 +31,8 @@ data class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter (
|
||||
@field:JsonProperty("values")
|
||||
val propertyValues: kotlin.collections.List<kotlin.String>? = null
|
||||
|
||||
)
|
||||
) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user