more flex in this check

This commit is contained in:
Jamie Macey 2020-10-13 09:17:15 -07:00
parent 68e64dba2c
commit 91a27852f2

View File

@ -118,7 +118,8 @@ module Rswag
def build_query_string_part(param, value)
name = param[:name]
return "#{name}=#{value}" unless param.dig(:schema, :type)&.to_sym == :array
type = param[:type] || param.dig(:schema, :type)
return "#{name}=#{value}" unless type&.to_sym == :array
case param[:collectionFormat]
when :ssv