Add defaultModelsExpandDepth

This change separates:
the Model (the one on the model-example section)
from
the Models (the ones at the bottom)
This commit is contained in:
HelderSepu
2017-12-08 21:12:41 -05:00
parent 943f71be5d
commit 28c706c70a
6 changed files with 19 additions and 10 deletions

View File

@@ -77,6 +77,10 @@
const ui = SwaggerUIBundle({
url: "http://petstore.swagger.io/v2/swagger.json",
dom_id: '#swagger-ui',
deepLinking: true,
defaultModelsExpandDepth: 1,
defaultModelExpandDepth: 1,
docExpansion: "list",
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset