add init for models without properties
This commit is contained in:
parent
2863e3a300
commit
2ddf7bfd54
2
pom.xml
2
pom.xml
|
|
@ -5,7 +5,7 @@
|
|||
<artifactId>TINetworking-swagger-codegen</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<name>TINetworking-swagger-codegen</name>
|
||||
<version>1.2.2</version>
|
||||
<version>1.2.3</version>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
|
|
|||
|
|
@ -79,6 +79,9 @@ public {{#useModelClasses}}class{{/useModelClasses}}{{^useModelClasses}}struct{{
|
|||
{{/allVars}}
|
||||
}
|
||||
{{/hasVars}}
|
||||
{{^hasVars}}
|
||||
public init() {}
|
||||
{{/hasVars}}
|
||||
{{#additionalPropertiesType}}
|
||||
public var additionalProperties: [String:{{{additionalPropertiesType}}}] = [:]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue