Skip to content

Commit c848c4d

Browse files
authored
Sort swagger-ui operations by, tag, method, and path (#912)
* sort operations by http method (alphabetically) * sort operations within each http method by path * sort tags (sections) alphabetically * also sort items in application.yml
1 parent dd8de29 commit c848c4d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/main/resources/application.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,14 @@ openapi:
7575
url: https://github.com/FAIRDataTeam/FAIRDataPoint
7676

7777
springdoc:
78-
writer-with-default-pretty-printer: true
78+
# https://springdoc.org/properties.html
7979
swagger-ui:
8080
disable-swagger-default-url: true
8181
doc-expansion: none
82-
operationsSorter: alpha
82+
operationsSorter: method
83+
tagsSorter: alpha
84+
writer-with-default-pretty-printer: true
85+
writer-with-order-by-keys: true
8386

8487
server:
8588
forward-headers-strategy: framework

0 commit comments

Comments
 (0)