forked from loafle/openapi-generator-original
Update enum.mustache (#5793)
https://github.com/OpenAPITools/openapi-generator/issues/5792
This commit is contained in:
committed by
GitHub
parent
e9d35c5a2a
commit
07cb6529b3
@@ -13,7 +13,7 @@ class {{classname}} {
|
||||
{{/enumVars}}
|
||||
{{/allowableValues}}
|
||||
|
||||
static {{classname}} fromJson(String value) {
|
||||
static {{classname}} fromJson({{dataType}} value) {
|
||||
return new {{classname}}TypeTransformer().decode(value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user