Skip to content

Commit cba54e2

Browse files
committed
Open models to allow extending
1 parent f2a58a0 commit cba54e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import JSONCodable
33

44
/// {{ definition.description }}
55
{% if definition.properties | length == 0 and not definition.additionalProperties %}
6-
public class {{ definition | modelType(spec) | raw }} {}
6+
open class {{ definition | modelType(spec) | raw }}: Codable {}
77
{% else %}
8-
public class {{ definition | modelType(spec) | raw }} {
8+
open class {{ definition | modelType(spec) | raw }}: Codable {
99

1010
enum CodingKeys: String, CodingKey {
1111
{%~ for property in definition.properties %}

0 commit comments

Comments
 (0)