diff --git a/generator/openapi/src/main/resources/templates/expediagroup-sdk/data_class.mustache b/generator/openapi/src/main/resources/templates/expediagroup-sdk/data_class.mustache index 5749145d3..8c36325f8 100644 --- a/generator/openapi/src/main/resources/templates/expediagroup-sdk/data_class.mustache +++ b/generator/openapi/src/main/resources/templates/expediagroup-sdk/data_class.mustache @@ -62,7 +62,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo ) { {{#allVars}} {{#eliminateDiscriminators}} - fun {{{name}}}({{{name}}}: {{#isEnum}}{{^isArray}}{{^isInherited}}{{classname}}.{{{nameInCamelCase}}}{{/isInherited}}{{/isArray}}{{^isArray}}{{#isInherited}}{{{parent}}}.{{{nameInCamelCase}}}{{/isInherited}}{{/isArray}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}) = apply { this.{{{name}}} = {{{name}}} } + fun {{{name}}}({{{name}}}: {{#isEnum}}{{^isArray}}{{^isInherited}}{{classname}}.{{{nameInCamelCase}}}{{/isInherited}}{{/isArray}}{{^isArray}}{{#isInherited}}{{{parent}}}.{{{nameInCamelCase}}}{{/isInherited}}{{/isArray}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{^required}}?{{/required}}) = apply { this.{{{name}}} = {{{name}}} } {{/eliminateDiscriminators}} {{/allVars}}