Open topliceanurazvan opened 2 years ago
Apparently I found something that works for me. When you define a plugin, the first argument contains the specSelectors
from where you can access specJson()
which gives you the json format of the spec given to SwaggerUI. You can use it in any wrapComponent or component as preffered.
I think the issue can be closed!
How can we help?
Currently, after reading the documentation, for showing extensions found in the schema, you can do that with the
showExtensions
property, but only for Operations/Parameters/Response/Schema objects. The problem is that there are some schemas that have extensions at the top-level or path level ( eg. shown in the screenshot below ) and they are not shown by default.I've tried to access the data of the extension through SwaggerUI plugins, but only managed to do so at the operation level with
wrapComponents
->operation
. Are there any examples or could you provide some help on how I can access the extension data through plugins if the extension is at top-level or path level?