mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 04:20:11 +00:00
Added line sorting back in for GetAllSchemas
Signed-off-by: Dave Shanley <dave@quobix.com>
This commit is contained in:
@@ -14,6 +14,7 @@ package index
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"sort"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
@@ -245,9 +246,9 @@ func (index *SpecIndex) GetAllSchemas() []*Reference {
|
||||
combined[i] = refSchemas[x]
|
||||
i++
|
||||
}
|
||||
//sort.Slice(combined, func(i, j int) bool {
|
||||
// return combined[i].Node.Line < combined[j].Node.Line
|
||||
//})
|
||||
sort.Slice(combined, func(i, j int) bool {
|
||||
return combined[i].Node.Line < combined[j].Node.Line
|
||||
})
|
||||
return combined
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user