mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[swagger-ui-express] fix swagger options key (#43214)
This commit is contained in:
parent
1754e384f4
commit
00d193f1a0
2
types/swagger-ui-express/index.d.ts
vendored
2
types/swagger-ui-express/index.d.ts
vendored
@ -24,7 +24,7 @@ export interface SwaggerUiOptions {
|
||||
customSiteTitle?: string;
|
||||
explorer?: boolean;
|
||||
isExplorer?: boolean;
|
||||
options?: SwaggerOptions;
|
||||
swaggerOptions?: SwaggerOptions;
|
||||
swaggerUrl?: string;
|
||||
swaggerUrls?: string[];
|
||||
}
|
||||
|
||||
@ -87,3 +87,11 @@ app.get(
|
||||
const swaggerHtml = swaggerUi.generateHTML(swaggerDocument, swaggerUiOpts);
|
||||
|
||||
app.use('/api-docs-html1', swaggerUi.serveFiles(swaggerDocument, swaggerUiOpts));
|
||||
|
||||
const uiOptsWithSwaggerOpts = {
|
||||
swaggerOptions: {
|
||||
validatorUrl: null
|
||||
}
|
||||
};
|
||||
|
||||
swaggerUi.setup(swaggerDocument, uiOptsWithSwaggerOpts);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user