We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b7992aa + f359597 commit e794de3Copy full SHA for e794de3
src/main/resources/handlebars/swift4/modelObject.mustache
@@ -11,7 +11,7 @@ public struct {{classname}}: Codable {
11
}
12
}{{/vendorExtensions.x-swift-optional-scalar}}{{/objcCompatible}}
13
{{/isNot}}{{/allVars}}{{#has this 'vars'}}
14
- public init({{#allVars}}{{name}}: {{{datatypeWithEnum}}}{{^required}}?{{/required}}{{#has this 'more'}}, {{/has}}{{/allVars}}) { {{#allVars}}
+ public init({{#allVars}}{{name}}: {{{datatypeWithEnum}}}{{^required}}? = nil{{/required}}{{#has this 'more'}}, {{/has}}{{/allVars}}) { {{#allVars}}
15
self.{{name}} = {{name}}{{/allVars}}
16
17
{{/has~}}{{#additionalPropertiesType}}
0 commit comments