lib/dropbox-sign/api_client.rb in dropbox-sign-1.5.0 vs lib/dropbox-sign/api_client.rb in dropbox-sign-1.6.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 -Generator version: 7.7.0 +Generator version: 7.8.0 =end require 'date' require 'json' @@ -197,11 +197,11 @@ @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\ "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\ "will be deleted automatically with GC. It's also recommended to delete the temp file "\ "explicitly with `tempfile.delete`" else - fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}") + fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}") end tempfile end @@ -279,10 +279,9 @@ sub_type = $1 {}.tap do |hash| data.each { |k, v| hash[k] = convert_to_type(v, sub_type) } end else - # models (e.g. Pet) klass = Dropbox::Sign.const_get(return_type) klass.respond_to?(:openapi_one_of) ? klass.build(data) : klass.build_from_hash(data) end end