forked from loafle/openapi-generator-original
[kotlin] Fix non-compilable code (#5205)
* The "name" field has to be a string * Avoid duplicate double quotes
This commit is contained in:
@@ -60,7 +60,7 @@ import java.io.Serializable
|
||||
{{#enumVars}}
|
||||
{{^multiplatform}}
|
||||
{{#moshi}}
|
||||
@Json(name = {{{value}}}) {{&name}}({{{value}}}){{^-last}},{{/-last}}{{#-last}};{{/-last}}
|
||||
@Json(name = {{^isString}}"{{/isString}}{{{value}}}{{^isString}}"{{/isString}}) {{&name}}({{{value}}}){{^-last}},{{/-last}}{{#-last}};{{/-last}}
|
||||
{{/moshi}}
|
||||
{{#gson}}
|
||||
@SerializedName(value={{{value}}}) {{&name}}({{{value}}}){{^-last}},{{/-last}}{{#-last}};{{/-last}}
|
||||
|
||||
Reference in New Issue
Block a user