Skip to content

Commit

Permalink
feat: Support swagger-ui spec option (#89)
Browse files Browse the repository at this point in the history
`spec` allows passing OpenAPI definition as JS object (takes precedence over `url` option).

https://swagger.io/docs/open-source-tools/swagger-ui/usage/configuration/
  • Loading branch information
feimosi authored and scttcper committed Aug 1, 2019
1 parent f52d7a4 commit bd9b541
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export interface SwaggerOptions {
defaultModelRendering: string;
showRequestHeaders: boolean;
layout: string;
[key: string]: string | boolean | string[];
spec: object;
[key: string]: string | boolean | string[] | object;
}

export interface KoaSwaggerUiOptions {
Expand Down

0 comments on commit bd9b541

Please sign in to comment.