Open knollet opened 1 month ago
Self host swagger to be able to use this even without internet access and to not expose internal addresses.
contrib/swagger defines a struct Config, which could include an optional field for an address where swagger is hosted.
Config
Currently external default addresses (unpkg.com) are hardcoded here: https://github.com/go-openapi/runtime/blob/master/middleware/swaggerui.go There's an optional SwaggerUIOpts.Template parameter which is not settable through contrib/swagger.
SwaggerUIOpts.Template
It would be a plus to have an example as to how clone swagger into my project and how to configure fiber to use that.
No response
Feature Description
Self host swagger to be able to use this even without internet access and to not expose internal addresses.
contrib/swagger defines a struct
Config
, which could include an optional field for an address where swagger is hosted.Currently external default addresses (unpkg.com) are hardcoded here: https://github.com/go-openapi/runtime/blob/master/middleware/swaggerui.go There's an optional
SwaggerUIOpts.Template
parameter which is not settable through contrib/swagger.It would be a plus to have an example as to how clone swagger into my project and how to configure fiber to use that.
Additional Context (optional)
No response
Code Snippet (optional)
No response
Checklist: