forked from loafle/openapi-generator-original
add default value to php model
This commit is contained in:
@@ -89,7 +89,7 @@ class {{classname}} implements ArrayAccess
|
||||
* ${{name}} {{#description}}{{{description}}}{{/description}}
|
||||
* @var {{datatype}}
|
||||
*/
|
||||
protected ${{name}};
|
||||
protected ${{name}}{{#defaultValue}} = {{{defaultValue}}}{{/defaultValue}};
|
||||
{{/vars}}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user