Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
feat: swagger-ui showExtensions=true defaultModelsExpandDepth=0
Browse files Browse the repository at this point in the history
  • Loading branch information
amazing-gao committed Feb 22, 2018
1 parent 3639983 commit 04d5a27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "koa-oai-router",
"version": "2.0.0-alpha.4",
"version": "2.0.0-alpha.5",
"main": "lib",
"scripts": {
"clean": "rm -rf coverage lib",
Expand Down
2 changes: 2 additions & 0 deletions src/router.js
Expand Up @@ -135,6 +135,8 @@ class OAIRouter extends Router {
urls: [{ name: 'api-doc', url: urlJoin(this.options.prefix, 'api.json') }],
displayOperationId: true,
displayRequestDuration: true,
showExtensions: true,
defaultModelsExpandDepth: 0,
};
});
}
Expand Down

0 comments on commit 04d5a27

Please sign in to comment.