mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-16 08:31:26 +00:00
Merge branch 'master' into not-escape-enum-value
Conflicts: modules/swagger-codegen/src/main/resources/Java/enumClass.mustache
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
|
||||
public enum {{{datatypeWithEnum}}} {
|
||||
{{#allowableValues}}{{#enumVars}}{{{name}}}("{{{value}}}"){{^-last}},
|
||||
{{/-last}}{{#-last}};{{/-last}}{{/enumVars}}{{/allowableValues}}
|
||||
@@ -9,6 +10,7 @@ public enum {{{datatypeWithEnum}}} {
|
||||
}
|
||||
|
||||
@Override
|
||||
@JsonValue
|
||||
public String toString() {
|
||||
return value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user