Skip to content

Commit

Permalink
deserialize Time
Browse files Browse the repository at this point in the history
  • Loading branch information
jablan committed Oct 11, 2023
1 parent 61daf2b commit 0124884
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openapi-generator/templates/ruby-client/base_object.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
DateTime.parse(value)
when :Date
Date.parse(value)
when :Time
Time.parse(value)
when :String
value.to_s
when :Integer
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0124884

Please sign in to comment.