swagger-api / swagger-api/swagger-ui
Model Properties Collapsed by default after version 4.14.0
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 29k
- Forks
- 9.3k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 25
Description
- Method of installation: npm
- Swagger-UI version: > 4.14.0
Content & configuration
Default Configuration:
const express = require('express')
const pathToSwaggerUi = require('swagger-ui-dist').absolutePath()
const app = express()
app.use(express.static(pathToSwaggerUi))
app.listen(3000)
I manually expanded the Models
Version 4.14.0
Model Properties are expanded by default (code, type,message...):

Version >=4.14.1
Model Properties are collapsed

How can keep the properties expanded by default on newer versions?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the behavior with the default Express configuration shown in the issue, comparing Swagger UI versions 4.14.0 and 4.14.1 or later. Trace the model properties expansion behavior and determine whether a supported configuration preserves the earlier default; done means the properties remain expanded or the correct workaround is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100