diff --git a/generator-templates/lenient/modelGeneric.mustache b/generator-templates/lenient/modelGeneric.mustache index 47279e8..eeaa7e1 100644 --- a/generator-templates/lenient/modelGeneric.mustache +++ b/generator-templates/lenient/modelGeneric.mustache @@ -234,7 +234,7 @@ {{#deprecated}} [Obsolete] {{/deprecated}} - public {{{dataType}}}{{^required}}?{{/required}} {{name}} { get; {{#isReadOnly}}private {{/isReadOnly}}set; } + public {{{dataType}}}{{^isNullable}}{{^required}}?{{/required}}{{/isNullable}} {{name}} { get; {{#isReadOnly}}private {{/isReadOnly}}set; } {{#isReadOnly}} /// diff --git a/generator-templates/strict/modelGeneric.mustache b/generator-templates/strict/modelGeneric.mustache index 262d00c..0ac1ff4 100644 --- a/generator-templates/strict/modelGeneric.mustache +++ b/generator-templates/strict/modelGeneric.mustache @@ -234,7 +234,7 @@ {{#deprecated}} [Obsolete] {{/deprecated}} - public {{{dataType}}}{{^required}}?{{/required}} {{name}} { get; {{#isReadOnly}}private {{/isReadOnly}}set; } + public {{{dataType}}}{{^isNullable}}{{^required}}?{{/required}}{{/isNullable}} {{name}} { get; {{#isReadOnly}}private {{/isReadOnly}}set; } {{#isReadOnly}} ///