File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
templates/swift/Sources/Models Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ public class {{ definition | modelType(spec) | raw }} {
9
9
10
10
{%~ for property in definition .properties %}
11
11
/// {{ property .description }}
12
- public let {{ property .name | escapeSwiftKeyword | removeDollarSign }}: {{ property | propertyType(spec ) | raw }}{% if not property . required %}?{% endif %}
12
+ public let {{ property .name | escapeSwiftKeyword | removeDollarSign }}: {{ property | propertyType(spec ) | raw }}
13
13
14
14
15
15
{%~ endfor %}
@@ -20,7 +20,7 @@ public class {{ definition | modelType(spec) | raw }} {
20
20
21
21
init(
22
22
{%~ for property in definition .properties %}
23
- {{ property .name | escapeSwiftKeyword | removeDollarSign }}: {{ property | propertyType(spec ) | raw }}{% if not property . required %}?{% endif %}{% if not loop .last or (loop .last and definition .additionalProperties ) %},{% endif %}
23
+ {{ property .name | escapeSwiftKeyword | removeDollarSign }}: {{ property | propertyType(spec ) | raw }}{% if not loop .last or (loop .last and definition .additionalProperties ) %},{% endif %}
24
24
25
25
{%~ endfor %}
26
26
{%~ if definition .additionalProperties %}
You can’t perform that action at this time.
0 commit comments