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