diff --git a/openapi-generator/templates/ruby-client/partial_model_generic.mustache b/openapi-generator/templates/ruby-client/partial_model_generic.mustache index 7d68ab36..78330b16 100644 --- a/openapi-generator/templates/ruby-client/partial_model_generic.mustache +++ b/openapi-generator/templates/ruby-client/partial_model_generic.mustache @@ -46,7 +46,7 @@ def self.openapi_types { {{#vars}} - :'{{{name}}}' => :'{{{dataType}}}'{{^-last}},{{/-last}} + :'{{{name}}}' => :'{{^isDateTime}}{{{dataType}}}{{/isDateTime}}{{#isDateTime}}DateTime{{/isDateTime}}'{{^-last}},{{/-last}} {{/vars}} } end