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