Skip to content

Commit

Permalink
Fix array in query params
Browse files Browse the repository at this point in the history
  • Loading branch information
lannn committed May 6, 2024
1 parent 988f87f commit b1547e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rspec/openapi/schema_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ def build_parameter_name(key, value)
if value.is_a?(Hash) && (value_keys = value.keys).size == 1
value_key = value_keys.first
build_parameter_name("#{key}[#{value_key}]", value[value_key])
elsif value.is_a?(Array)
"#{key}[]"
else
key
end
Expand Down

0 comments on commit b1547e7

Please sign in to comment.