mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-23 06:16:42 +00:00
Fixes spec for #stop writing swagger docs
This commit is contained in:
parent
5e71651d6d
commit
659b328eda
@ -35,7 +35,7 @@ module Rswag
|
||||
def stop(_notification = nil)
|
||||
@config.swagger_docs.each do |url_path, doc|
|
||||
# remove 2.0 parameters
|
||||
doc[:paths].each_pair do |_k, v|
|
||||
doc[:paths]&.each_pair do |_k, v|
|
||||
v.each_pair do |_verb, value|
|
||||
is_hash = value.is_a?(Hash)
|
||||
if is_hash && value.dig(:parameters)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user