diff --git a/openapi-generator/templates/ruby-client/base_object.mustache b/openapi-generator/templates/ruby-client/base_object.mustache index cf4a62a9..ce9bdfeb 100644 --- a/openapi-generator/templates/ruby-client/base_object.mustache +++ b/openapi-generator/templates/ruby-client/base_object.mustache @@ -38,6 +38,8 @@ DateTime.parse(value) when :Date Date.parse(value) + when :Time + Time.parse(value) when :String value.to_s when :Integer @@ -91,7 +93,7 @@ is_nullable = self.class.openapi_nullable.include?(attr) next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end - + hash[param] = _to_hash(value) end hash