Skip to content

Commit

Permalink
Fix paths without parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
ipepe committed Jan 8, 2024
1 parent 8757668 commit 691b80c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rspec/openapi/schema_cleaner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def cleanup_conflicting_security_parameters!(base)
end

security_schemes_for_parent.each_value do |security_scheme|
next unless parent['parameters']

parent['parameters'].reject! do |parameter|
parameter['in'] == security_scheme['in'] && # same location (ie. header)
parameter['name'] == security_scheme['name'] # same name (ie. AUTHORIZATION)
Expand Down

0 comments on commit 691b80c

Please sign in to comment.