Allow use #/components/parameters and other in inherited $refs

This commit is contained in:
Serg F 2021-02-19 15:15:44 +03:00 committed by GitHub
parent 0aca50c66c
commit 3d3d93f3ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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