From 3d3d93f3abd4dcb0cbcb06e08173564af7189945 Mon Sep 17 00:00:00 2001 From: Serg F Date: Fri, 19 Feb 2021 15:15:44 +0300 Subject: [PATCH] Allow use #/components/parameters and other in inherited $refs --- rswag-specs/lib/rswag/specs/response_validator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rswag-specs/lib/rswag/specs/response_validator.rb b/rswag-specs/lib/rswag/specs/response_validator.rb index 2c54874..23b2c34 100644 --- a/rswag-specs/lib/rswag/specs/response_validator.rb +++ b/rswag-specs/lib/rswag/specs/response_validator.rb @@ -62,7 +62,7 @@ module Rswag swagger_doc.slice(:definitions) else components = swagger_doc[:components] || {} - { components: { schemas: components[:schemas] } } + { components: components } end end end