Merge pull request #404 from Wolfer/patch-1

Allow use #/components/parameters and other in inherited $refs
This commit is contained in:
Blake Erickson
2021-03-06 09:58:10 -07:00
committed by GitHub

View File

@@ -66,7 +66,7 @@ module Rswag
swagger_doc.slice(:definitions) swagger_doc.slice(:definitions)
else else
components = swagger_doc[:components] || {} components = swagger_doc[:components] || {}
{ components: { schemas: components[:schemas] } } { components: components }
end end
end end
end end