[kotlin-client] Add @JsonEnumDefaultValue annotation to enum class (#19380)

This commit is contained in:
Kensuke Taguchi
2024-08-18 16:27:43 +09:00
committed by GitHub
parent 0a5c99739a
commit fd62e3897b
3 changed files with 8 additions and 3 deletions

View File

@@ -16,6 +16,7 @@
package org.openapitools.client.models
import com.fasterxml.jackson.annotation.JsonEnumDefaultValue
import com.fasterxml.jackson.annotation.JsonProperty
/**
@@ -35,7 +36,7 @@ enum class StringEnumRef(val value: kotlin.String) {
@JsonProperty(value = "unclassified")
unclassified("unclassified"),
@JsonProperty(value = "unknown_default_open_api")
@JsonProperty(value = "unknown_default_open_api") @JsonEnumDefaultValue
unknown_default_open_api("unknown_default_open_api");
/**