Skip to content

Commit

Permalink
Fix parameters hash merging
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattia Roccoberton committed Mar 17, 2022
1 parent a69a7ec commit 3437a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec/openapi/schema_merger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def deep_reverse_merge!(base, spec)
elsif base[key].is_a?(Array) && value.is_a?(Array)
if key == "parameters"
# merge arrays
base[key] |= value
base[key] ||= value
end
else
# no-op
Expand Down

0 comments on commit 3437a50

Please sign in to comment.