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
commit 0169fbab66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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