-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Collapse tags and models by default #3088
Comments
We currently do not expose that as a configuration option. |
Is there any suggestion how to resolve this elegantly? |
Using the bundle you can specify parameter 'docExpansion' SwaggerUIBundle({
url: "http://urltoswaggerfile.com",
dom_id: '#swagger-ui',
docExpansion: 'none',
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout"
}); |
Thanks, @Cheprer. With the new config option, this issue can be closed. |
The docExpansion controls both tags and models... |
docExpansion: 'none' works fine for me. Thx |
I did it by adding the required changes in the swaggerUi. You need to change it as per your requirement as below;
|
It may help someone : |
How can I collapse tags and models section by default. See screenshot:
The text was updated successfully, but these errors were encountered: