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.43k stars 228 forks source link

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

Open mozgbrasil opened 5 months ago

mozgbrasil commented 5 months 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

IlmariKu commented 2 months ago

So, is it that you need to add multiple custom.js file if I understood correctly?

ffflorian commented 1 month ago

@mozgbrasil you commented on the wrong repository, the types are located in https://github.com/DefinitelyTyped/DefinitelyTyped.

This will be fixed with https://github.com/DefinitelyTyped/DefinitelyTyped/pull/70848.