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.
1 parent f2a58a0 commit cba54e2Copy full SHA for cba54e2
templates/swift/Sources/Models/Model.swift.twig
@@ -3,9 +3,9 @@ import JSONCodable
3
4
/// {{ definition.description }}
5
{% if definition.properties | length == 0 and not definition.additionalProperties %}
6
-public class {{ definition | modelType(spec) | raw }} {}
+open class {{ definition | modelType(spec) | raw }}: Codable {}
7
{% else %}
8
-public class {{ definition | modelType(spec) | raw }} {
+open class {{ definition | modelType(spec) | raw }}: Codable {
9
10
enum CodingKeys: String, CodingKey {
11
{%~ for property in definition.properties %}
0 commit comments