forked from loafle/openapi-generator-original
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
This commit is contained in:
parent
5c62ba182e
commit
070894dc95
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user