swagger-api / swagger-api/swagger-ui
Specify a definition as the default definition
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 29k
- Forks
- 9.3k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 25
Description
How can I pick a specific group as the default group in the dropdown list of "Select a definition".
There is a property springdoc.swagger-ui.groups-order that I can configure to sort the groups by order. But it doesn't allow me to pick any random group as the default group.
example

Such as in the above figure, for group "default", I haven't found a way to make it default in the dropdown list. Can this be supported? Thanks.
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 locating the "Select a definition" dropdown and the existing springdoc.swagger-ui.groups-order behavior. Determine how a configured group could be selected initially; done means the requested group opens as the default without changing the ordering behavior, with the result covered by the relevant tests or documentation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100