mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-09-12 00:19:27 +00:00
sort processor and module schemas by ID
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package schema
|
||||
|
||||
import (
|
||||
"cmp"
|
||||
"fmt"
|
||||
"net/url"
|
||||
|
||||
@@ -24,3 +25,7 @@ func GetResolvedConfigSchema() (*jsonschema.Resolved, error) {
|
||||
ValidateDefaults: true,
|
||||
})
|
||||
}
|
||||
|
||||
func schemaCmp(a, b *jsonschema.Schema) int {
|
||||
return cmp.Compare(a.ID, b.ID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user