From 66309f4b3e518c98adc86fa99c2c38e268b43745 Mon Sep 17 00:00:00 2001 From: C H Date: Thu, 4 Feb 2021 07:51:40 +0100 Subject: [PATCH] fix bug on indice to compare (#295) --- 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 }