File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
modules/openapi-generator/src/main/resources/kotlin-client Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -43,20 +43,45 @@ import kotlinx.serialization.*
43
43
{{#allowableValues} }{ {#enumVars} }
44
44
{ {^multiplatform} }
45
45
{ {#moshi} }
46
+ { {#isString} }
46
47
@Json(name = { {#lambda.doublequote} }{ {{value} }}{ {/lambda.doublequote} })
48
+ { {/isString} }
49
+ { {^isString} }
50
+ @Json(name = { {{value} }})
51
+ { {/isString} }
47
52
{ {/moshi} }
48
53
{ {#gson} }
54
+ { {#isString} }
49
55
@SerializedName(value = { {#lambda.doublequote} }{ {{value} }}{ {/lambda.doublequote} })
56
+ { {/isString} }
57
+ { {^isString} }
58
+ @SerializedName(value = { {{value} }})
59
+ { {/isString} }
50
60
{ {/gson} }
51
61
{ {#jackson} }
62
+ { {#isString} }
52
63
@JsonProperty(value = { {#lambda.doublequote} }{ {{value} }}{ {/lambda.doublequote} }){ {#enumUnknownDefaultCase} }{ {#-last} } @JsonEnumDefaultValue{ {/-last} }{ {/enumUnknownDefaultCase} }
64
+ { {/isString} }
65
+ { {^isString} }
66
+ @JsonProperty(value = { {{value} }}){ {#enumUnknownDefaultCase} }{ {#-last} } @JsonEnumDefaultValue{ {/-last} }{ {/enumUnknownDefaultCase} }
67
+ { {/isString} }
53
68
{ {/jackson} }
54
69
{ {#kotlinx_serialization} }
70
+ { {#isString} }
55
71
@SerialName(value = { {#lambda.doublequote} }{ {{value} }}{ {/lambda.doublequote} })
72
+ { {/isString} }
73
+ { {^isString} }
74
+ @SerialName(value = { {{value} }})
75
+ { {/isString} }
56
76
{ {/kotlinx_serialization} }
57
77
{ {/multiplatform} }
58
78
{ {#multiplatform} }
79
+ { {#isString} }
59
80
@SerialName(value = { {#lambda.doublequote} }{ {{value} }}{ {/lambda.doublequote} })
81
+ { {/isString} }
82
+ { {^isString} }
83
+ @SerialName(value = { {{value} }})
84
+ { {/isString} }
60
85
{ {/multiplatform} }
61
86
{ {#isArray} }
62
87
{ {#isList} }
You can’t perform that action at this time.
0 commit comments