Add config switch for deep linking

This commit is contained in:
Kyle Shockey
2017-07-14 00:51:26 -07:00
parent 41ecceed87
commit 8851b138f9
3 changed files with 15 additions and 2 deletions

View File

@@ -30,6 +30,7 @@ const CONFIGS = [
"parameterMacro",
"displayOperationId",
"displayRequestDuration",
"deepLinking",
]
// eslint-disable-next-line no-undef
@@ -61,6 +62,7 @@ module.exports = function SwaggerUI(opts) {
custom: {},
displayOperationId: false,
displayRequestDuration: false,
deepLinking: true,
// Initial set of plugins ( TODO rename this, or refactor - we don't need presets _and_ plugins. Its just there for performance.
// Instead, we can compile the first plugin ( it can be a collection of plugins ), then batch the rest.