lib/phrase/models/gitlab_sync_history.rb in phrase-2.18.0 vs lib/phrase/models/gitlab_sync_history.rb in phrase-2.19.0
- old
+ new
@@ -26,11 +26,11 @@
# Attribute type mapping.
def self.openapi_types
{
:'status' => :'String',
:'action' => :'String',
- :'errors' => :'Array<GitlabSyncHistoryErrors>',
+ :'errors' => :'Array<GitlabSyncHistoryErrorsInner>',
:'date' => :'DateTime',
:'details' => :'Object'
}
end
@@ -150,10 +150,12 @@
case type.to_sym
when :DateTime
DateTime.parse(value)
when :Date
Date.parse(value)
+ when :Time
+ Time.parse(value)
when :String
value.to_s
when :Integer
value.to_i
when :Float
@@ -203,10 +205,10 @@
value = self.send(attr)
if value.nil?
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
end