From 5e2104e2333fb7a55559975157f34dbb3b55dcd2 Mon Sep 17 00:00:00 2001 From: Cyrille Hemidy Date: Tue, 2 Feb 2021 17:46:23 +0100 Subject: [PATCH] fix bug on indice to compare --- openapi2/openapi2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi2/openapi2.go b/openapi2/openapi2.go index 8cf0f0117..12cad02f2 100644 --- a/openapi2/openapi2.go +++ b/openapi2/openapi2.go @@ -178,7 +178,7 @@ func (ps Parameters) Less(i, j int) bool { return ps[i].Name < ps[j].Name } if ps[i].In != ps[j].In { - return ps[i].In < ps[i].In + return ps[i].In < ps[j].In } return ps[i].Ref < ps[j].Ref }