swagger-api / swagger-api/swagger-ui
The parameters are not expanded/collapsed
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 29k
- Forks
- 9.3k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 25
Description
The parameters in the diagram are not expanded/collapsed when you click on the arrow
It helps if you switch the tab to "Example Value" and then back to "Schema"
My configuration:
let ui = SwaggerUIBundle({
url: "/api-doc/main",
dom_id: "#swagger-ui",
deepLinking: true,
displayRequestDuration: true,
defaultModelRendering: "model",
defaultModelExpandDepth: 3,
docExpansion: "none",
validatorUrl: "none",
persistAuthorization: true,
tagsSorter: "alpha",
operationsSorter: "alpha",
plugins: [
HideInfoUrlPartsPlugin
]
});
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 parameter expand/collapse behavior in Swagger UI using the configuration shown, especially with the Schema and Example Value tabs. Verify whether clicking the arrow updates the parameter display without switching tabs; done means the parameters expand and collapse directly from the arrow.
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