swagger-api / swagger-api/swagger-ui

Specify a definition as the default definition

Open
#8,329 0 comments 1 reaction 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

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
209373407-509bfd4e-9017-4e6f-92e5-ada3931df665

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.