swagger-api / swagger-api/swagger-ui

The parameters are not expanded/collapsed

Open
#10,649 0 comments 0 reactions 0 assignees View on GitHub

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

Image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.