forked from loafle/openapi-generator-original
[Java Play Framework] Fix to the default values (#5879)
* Fix to the default values. It did not take care of the "default" and also was setting to a bad default when not set. * Just make a difference between string and non string instead of placing all types in the mustache file
This commit is contained in:
committed by
wing328
parent
a2d19a1feb
commit
bf74de3a5a
@@ -1 +1 @@
|
||||
{{#isBoolean}}false{{/isBoolean}}{{#isInteger}}0{{/isInteger}}{{#isDouble}}0.0{{/isDouble}}{{#isLong}}0L{{/isLong}}{{#isFloat}}0.0{{/isFloat}}{{#isString}}""{{/isString}}
|
||||
{{#defaultValue}}{{#isString}}"{{/isString}}{{{defaultValue}}}{{#isString}}"{{/isString}}{{/defaultValue}}{{^defaultValue}}null{{/defaultValue}}
|
||||
Reference in New Issue
Block a user