Open
Description
Content & configuration
Swagger-UI configuration options:
SwaggerUI({
spec,
domNode: swaggerRef.current,
defaultModelsExpandDepth: 10,
defaultModelExpandDepth: 10,
docExpansion: 'list',
plugins: swaggerPlugins,
showExtensions: true,
});
Is your feature request related to a problem?
Users have to expand each schema under the "Model" section individually.
Describe the solution you'd like
Having an "Expand All" button to expand all schemas by default.
Describe alternatives you've considered
The defaultModelsExpandDepth
seems to only work at the top level to expand the models, and doesn't seem to have any effect on expanding the individual models itself. The only significant change I see is when I set it to 0
the Models
section is collapsed, and -1
hides it.