scottie1984 / swagger-ui-express

Adds middleware to your express app to serve the Swagger UI bound to your Swagger document. This acts as living documentation for your API hosted from within your app.
MIT License
1.4k stars 225 forks source link

[@types/swagger-ui-express] About the impossibility of adding custom js #372

Open mozgbrasil opened 3 weeks ago

mozgbrasil commented 3 weeks ago

@dmitryrogozhny, @ffflorian

I'm using swagger at Vercel and I need to use custom js but it doesn't have support for using arrays

https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/swagger-ui-express/index.d.ts#L16

I see that the following project has proper support

https://github.com/nestjs/swagger/blob/master/lib/interfaces/swagger-custom-options.interface.ts#L11