swagger-api / swagger-api/swagger-ui

Model Properties Collapsed by default after version 4.14.0

Open
#8,364 1 comment 3 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

  • 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...):
image

Version >=4.14.1
Model Properties are collapsed
image

How can keep the properties expanded by default on newer versions?

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.