I use Swagger UI to display API documentation. By default, it displays the \"Models\" section at the bottom:
How to hide it?
To hide the "Models" section, add defaultModelsExpandDepth: -1 to the Swagger UI configuration code in your index.html.
defaultModelsExpandDepth: -1
index.html
Note the option name uses plural Model*s* not Model.
Model*s*
Model
// index.html