lib/dropbox-sign/models/file_response.rb in dropbox-sign-1.4.1 vs lib/dropbox-sign/models/file_response.rb in dropbox-sign-1.5.0
- old
+ new
@@ -4,11 +4,11 @@
#Dropbox Sign v3 API
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-OpenAPI Generator version: 5.3.0
+Generator version: 7.7.0
=end
require 'date'
require 'time'
@@ -185,12 +185,10 @@
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
true
else
false
end
- when :File
- value
when :Object
# generic object (usually a Hash), return directly
value
when /\AArray<(?<inner_type>.+)>\z/
inner_type = Regexp.last_match[:inner_type]
@@ -204,10 +202,10 @@
end
end
else # model
# models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
end
# Returns the string representation of the object
# @return [String] String presentation of the object