You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating multiple GroupedOpenApi, the resulting url list via /v3/api-docs/swagger-config is not ordered corretly. It orders by the name, but not by the displayName attribute of the urls.
When using it with Swagger UI the dropdown menu is unordered, although a "groupsOrder" is configured.
To Reproduce
Create two groupedApi with names which are not in the same alphabetical order as the displayNames:
Now "yyyy - Admin Api" comes first in the list, and "aaaa - Yellow Api" comes second, as "admin" is alphabetically before "yellow".
What version of spring-boot you are using?
Latest
Expected behavior
I expect to return a ordered list, ordered by the displayName instead of the name attribute.
In the above mentioned example, it should come the other way round: "aaaa - Yellow Api" first, "yyyy - Admin Api" second (given same groupsOrder and groupsOrder set to ASC.
Describe the bug
When creating multiple GroupedOpenApi, the resulting url list via
/v3/api-docs/swagger-config
is not ordered corretly. It orders by thename
, but not by thedisplayName
attribute of the urls.When using it with Swagger UI the dropdown menu is unordered, although a "groupsOrder" is configured.
To Reproduce
Create two groupedApi with names which are not in the same alphabetical order as the
displayNames
:Now "yyyy - Admin Api" comes first in the list, and "aaaa - Yellow Api" comes second, as "admin" is alphabetically before "yellow".
Latest
Expected behavior
I expect to return a ordered list, ordered by the
displayName
instead of thename
attribute.In the above mentioned example, it should come the other way round: "aaaa - Yellow Api" first, "yyyy - Admin Api" second (given same groupsOrder and groupsOrder set to ASC.
Additional context
The relevant line is here:
springdoc-openapi/springdoc-openapi-starter-common/src/main/java/org/springdoc/core/properties/SwaggerUiConfigParameters.java
Line 307 in e14f975
This line was probably forgotten to change, when "displayName" was introduced, additional to "name"
The text was updated successfully, but these errors were encountered: