mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 07:16:40 +00:00
Merge pull request #404 from Wolfer/patch-1
Allow use #/components/parameters and other in inherited $refs
This commit is contained in:
commit
0169fbab66
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user