From 23e81d52332c8e4c3455e9415be794fbf75b4891 Mon Sep 17 00:00:00 2001 From: joshua bauer Date: Tue, 10 Apr 2018 16:47:18 -0700 Subject: [PATCH] Sort swagger tags. --- .../java/io/sinistral/proteus/server/swagger/Reader.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/sinistral/proteus/server/swagger/Reader.java b/src/main/java/io/sinistral/proteus/server/swagger/Reader.java index bd72e02..ddb3871 100644 --- a/src/main/java/io/sinistral/proteus/server/swagger/Reader.java +++ b/src/main/java/io/sinistral/proteus/server/swagger/Reader.java @@ -20,6 +20,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.TreeMap; import java.util.TreeSet; import java.util.concurrent.CompletableFuture; import java.util.regex.Matcher; @@ -204,7 +205,10 @@ protected Swagger read(Class cls, String parentPath, String parentMethod, boo @SuppressWarnings("deprecation") private Swagger read(Class cls, String parentPath, String parentMethod, boolean isSubresource, String[] parentConsumes, String[] parentProduces, Map parentTags, List parentParameters, Set> scannedResources) { - Map tags = new LinkedHashMap(); + + Map tags = new TreeMap(); + + List securities = new ArrayList(); String[] consumes = new String[0];