swagger-api / swagger-api/swagger-ui
Parameters get reshuffled in Model
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 29k
- Forks
- 9.3k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 25
Description
- OS: Windows
- Browser: Any
- Swagger-UI version: 3.1.7
- Swagger/OpenAPI version: Swagger 2.0
Description
Parameters returned in the response body get reshuffled in the Model section, even though their order in the Example Value section is normal — the same as provided in the definition file.
Screenshots
Example value section. Parameters are ordered normally.

Model section. Parameters get reshuffled.

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 ordering difference between the Model and Example Value sections using a Swagger 2.0 definition file in Swagger UI 3.1.7. Trace the frontend entry point that renders the Model section and compare its parameter ordering with the Example Value rendering. Done means the Model section preserves the definition-file order shown in the Example Value section.
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