From 070894dc95f4e6da524cf98e7a60260fc46abb8c Mon Sep 17 00:00:00 2001 From: Gleb Sinyavsky Date: Fri, 1 Sep 2017 17:56:47 +0300 Subject: [PATCH] Global namespaces for ruby basic types (#6418) File here will be overriden by generated class File of swagger.yml containse the definition named File. Using global namespace can fix it --- .../swagger-codegen/src/main/resources/ruby/api_client.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/swagger-codegen/src/main/resources/ruby/api_client.mustache b/modules/swagger-codegen/src/main/resources/ruby/api_client.mustache index f2a71385cb4..bf5cd927502 100644 --- a/modules/swagger-codegen/src/main/resources/ruby/api_client.mustache +++ b/modules/swagger-codegen/src/main/resources/ruby/api_client.mustache @@ -274,7 +274,7 @@ module {{moduleName}} data = {} form_params.each do |key, value| case value - when File, Array, nil + when ::File, ::Array, nil # let typhoeus handle File, Array and nil parameters data[key] = value else