File tree Expand file tree Collapse file tree 6 files changed +4
-22
lines changed
modules/openapi-generator/src/main/resources/kotlin-client
kotlin-jvm-okhttp/src/main/kotlin/org/openapitools/client/models
kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models
kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models
kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models
petstore/kotlin-uppercase-enum/src/main/kotlin/org/openapitools/client/models Expand file tree Collapse file tree 6 files changed +4
-22
lines changed Original file line number Diff line number Diff line change @@ -64,9 +64,11 @@ import kotlinx.serialization.*
6464 { {#jackson} }
6565 @JsonProperty(value = { {#lambda.doublequote} }{ {{value} }}{ {/lambda.doublequote} }){ {#enumUnknownDefaultCase} }{ {#-last} } @JsonEnumDefaultValue{ {/-last} }{ {/enumUnknownDefaultCase} }
6666 { {/jackson} }
67- { {#kotlinx_serialization} }{ {#isString} }
67+ { {#kotlinx_serialization} }
68+ { {#isString} }
6869 @SerialName(value = { {#lambda.doublequote} }{ {{value} }}{ {/lambda.doublequote} })
69- { {/isString} }{ {/kotlinx_serialization} }
70+ { {/isString} }
71+ { {/kotlinx_serialization} }
7072 { {/multiplatform} }
7173 { {#multiplatform} }
7274 @SerialName(value = { {#lambda.doublequote} }{ {{value} }}{ {/lambda.doublequote} })
Original file line number Diff line number Diff line change @@ -29,15 +29,12 @@ import com.squareup.moshi.JsonClass
2929enum class ApiStringEnumRef (val value : kotlin.String ) {
3030
3131 @Json(name = " success" )
32-
3332 success(" success" ),
3433
3534 @Json(name = " failure" )
36-
3735 failure(" failure" ),
3836
3937 @Json(name = " unclassified" )
40-
4138 unclassified(" unclassified" );
4239
4340 /* *
Original file line number Diff line number Diff line change @@ -28,19 +28,15 @@ import com.fasterxml.jackson.annotation.JsonProperty
2828enum class StringEnumRef (val value : kotlin.String ) {
2929
3030 @JsonProperty(value = " success" )
31-
3231 success(" success" ),
3332
3433 @JsonProperty(value = " failure" )
35-
3634 failure(" failure" ),
3735
3836 @JsonProperty(value = " unclassified" )
39-
4037 unclassified(" unclassified" ),
4138
4239 @JsonProperty(value = " unknown_default_open_api" ) @JsonEnumDefaultValue
43-
4440 unknown_default_open_api(" unknown_default_open_api" );
4541
4642 /* *
Original file line number Diff line number Diff line change @@ -28,19 +28,15 @@ import com.fasterxml.jackson.annotation.JsonProperty
2828enum class StringEnumRef (val value : kotlin.String ) {
2929
3030 @JsonProperty(value = " success" )
31-
3231 success(" success" ),
3332
3433 @JsonProperty(value = " failure" )
35-
3634 failure(" failure" ),
3735
3836 @JsonProperty(value = " unclassified" )
39-
4037 unclassified(" unclassified" ),
4138
4239 @JsonProperty(value = " unknown_default_open_api" ) @JsonEnumDefaultValue
43-
4440 unknown_default_open_api(" unknown_default_open_api" );
4541
4642 /* *
Original file line number Diff line number Diff line change @@ -27,15 +27,12 @@ import com.google.gson.annotations.SerializedName
2727enum class ApiStringEnumRef (val value : kotlin.String ) {
2828
2929 @SerializedName(value = " success" )
30-
3130 SUCCESS (" success" ),
3231
3332 @SerializedName(value = " failure" )
34-
3533 FAILURE (" failure" ),
3634
3735 @SerializedName(value = " unclassified" )
38-
3936 UNCLASSIFIED (" unclassified" );
4037
4138 /* *
Original file line number Diff line number Diff line change @@ -33,19 +33,13 @@ import kotlinx.serialization.encoding.Encoder
3333@Serializable(with = PetEnumSerializer ::class )
3434enum class PetEnum (val value : kotlin.String ) {
3535
36-
3736 @SerialName(value = " myFirstValue" )
38-
3937 MY_FIRST_VALUE (" myFirstValue" ),
4038
41-
4239 @SerialName(value = " MY_SECOND_VALUE" )
43-
4440 MY_SECOND_VALUE (" MY_SECOND_VALUE" ),
4541
46-
4742 @SerialName(value = " unknown_default_open_api" )
48-
4943 UNKNOWN_DEFAULT_OPEN_API (" unknown_default_open_api" );
5044
5145 /* *
You can’t perform that action at this time.
0 commit comments