Interface ISetupSwaggerProxyOptions

Options for setupSwaggerProxy() function.

Hierarchy

  • ISetupSwaggerProxyOptions

Properties

baseDocument: SwaggerBaseDocument

The base document.

basePath?: Nilable<string>

The custom base path.

cache?: Nilable<false | ICache>

The custom cache provider to use.

false indicates to use no cache.

cacheKey?: any

The custom key in the cache, which is used to store downloaded Swagger documents as array.

Default

"downloaded-swagger-documents"

onSourceError?: Nilable<SwaggerSourceErrorHandler>

Is invoked, when downloading a Swagger document from a source.

onUpdateDocument?: Nilable<SwaggerDocumentUpdater>

An optional function, which updates a (downloaded) Swagger document.

onloadJS?: Nilable<string>

The additional JavaScript code for the end of the window.onload function of the swagger-initializer.js file.

resetOnloadJS?: Nilable<boolean>

Reset the code of window.onload function of the swagger-initializer.js file or not.

Default

false

One or more source.

use?: Nilable<HttpMiddleware[]>

One or more custom middlewares to use.

version?: Nilable<string>

OpenAPI version.

Default

"3.0.3"

Generated using TypeDoc