Skip to content

Commit 070894d

Browse files
zhulikwing328
authored andcommitted
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
1 parent 5c62ba1 commit 070894d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/swagger-codegen/src/main/resources/ruby/api_client.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ module {{moduleName}}
274274
data = {}
275275
form_params.each do |key, value|
276276
case value
277-
when File, Array, nil
277+
when ::File, ::Array, nil
278278
# let typhoeus handle File, Array and nil parameters
279279
data[key] = value
280280
else

0 commit comments

Comments
 (0)