Skip to content

Commit 9e3496e

Browse files
committed
Fix swift double optional
1 parent 6ee8749 commit 9e3496e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/swift/Sources/Models/Model.swift.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class {{ definition | modelType(spec) | raw }} {
99

1010
{%~ for property in definition.properties %}
1111
/// {{ 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 }}
1313

1414

1515
{%~ endfor %}

0 commit comments

Comments
 (0)