diff --git a/pom.xml b/pom.xml index ccad2d4..e199393 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ TINetworking-swagger-codegen jar TINetworking-swagger-codegen - 1.2.2 + 1.2.3 diff --git a/src/main/resources/handlebars/TINetworking/modelObject.mustache b/src/main/resources/handlebars/TINetworking/modelObject.mustache index 70355a9..160c0d5 100644 --- a/src/main/resources/handlebars/TINetworking/modelObject.mustache +++ b/src/main/resources/handlebars/TINetworking/modelObject.mustache @@ -79,6 +79,9 @@ public {{#useModelClasses}}class{{/useModelClasses}}{{^useModelClasses}}struct{{ {{/allVars}} } {{/hasVars}} +{{^hasVars}} + public init() {} +{{/hasVars}} {{#additionalPropertiesType}} public var additionalProperties: [String:{{{additionalPropertiesType}}}] = [:]