Skip to content

api-morph / GenerateSwaggerUIOptions

Interface: GenerateSwaggerUIOptions

Defined in: src/types/swagger.ts:4

generateSwaggerUI 的选项配置

Properties

customCss?

optional customCss: string

Defined in: src/types/swagger.ts:10

自定义 CSS 样式


customJs?

optional customJs: string

Defined in: src/types/swagger.ts:12

自定义 JavaScript 代码


persistAuthorization?

optional persistAuthorization: boolean

Defined in: src/types/swagger.ts:14

If set to true, it persists authorization data and it would not be lost on browser close/refresh。默认为 false


title?

optional title: string

Defined in: src/types/swagger.ts:8

HTML 页面标题,默认为 'Swagger UI'


url?

optional url: string

Defined in: src/types/swagger.ts:6

Swagger JSON 文件的 URL 路径,默认为 '/openapi.json'

基于 MIT 许可证发布