question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

3.30.1 breaks path tags (endpoints don’t expand)

See original GitHub issue

Q&A (please complete the following information)

  • OS: macOS
  • Browser: Chrome
  • Version: 84.0.4147.89
  • Method of installation: SwaggerUIBundle from unpkg
  • Swagger-UI version: 3.30.1
  • Swagger/OpenAPI version: OpenAPI 3.0.2

Content & configuration

Example Swagger/OpenAPI definition: example.yml

Swagger-UI configuration options:

SwaggerUIBundle({
    url: "openapi",
    dom_id: "#api-explorer",
    presets: [
        SwaggerUIBundle.presets.apis,
        SwaggerUIBundle.SwaggerUIStandalonePreset
    ],
})

Describe the bug you’re encountering

When opening a path that is in a tag “group”, it disappears and then reappears underneath the default tag.

This is a regression in 3.30.1; I temporarily set my unpkg URL to 3.30.0 (https://unpkg.com/swagger-ui-dist@3.30.0/swagger-ui-bundle.js) and the behavior no longer happens. I set it back to 3 to get the latest version and it started happening again.

To reproduce…

Steps to reproduce the behavior:

  1. Go to a path in a tag “group”
  2. Click on the path item
  3. See error: the path item will disappear and reappear further down the page under a new default tag group.
  4. The path item under the default tag will sit and spin.

Expected behavior

The path item should open in place.

Screenshots

example

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:58
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

15reactions
tim-laicommented, Jul 22, 2020

New release to resolve this issue, v3.30.2

7reactions
jmrieboldcommented, Jul 23, 2020

@tim-lai, jsDelivr appears to still be serving 3.30.1 for version 3. Is this going to update automatically or does it require action on Swagger’s part?

Read more comments on GitHub >

github_iconTop Results From Across the Web

SwaggerUI Bug recently popped up - TMS XData - TMS Support ...
3.30.1 breaks path tags (endpoints don't expand) ... Swagger-UI version: 3.30.1 Swagger/OpenAPI version: OpenAPI 3.0.2 Content & configuration Example.
Read more >
Step 7: The tags object (OpenAPI tutorial) | Documenting APIs
The tags object allows you to arrange the paths (endpoints) into named groups in the Swagger UI display. Defining tags at the root...
Read more >
Container vulnerability scanning - trivy - Sourcegraph handbook
It breaks down a container image into components and alerts on components with CVEs. We scan our container images for Critical and High...
Read more >
ns-3 Tutorial
We don't want this tutorial to devolve into a C++ tutorial, though, so we do expect a basic command of the language.
Read more >
Bug listing with status RESOLVED with resolution TEST ...
... for Gimp don't get loaded" status:RESOLVED resolution:TEST-REQUEST severity:major · Bug:20607 - "Using ipv6 USE flag with ucspi-tcp-0.88-r5 breaks ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found