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:
@@ -2,6 +2,7 @@ package schema
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"slices"
|
||||
|
||||
"github.com/google/jsonschema-go/jsonschema"
|
||||
"github.com/jwetzell/showbridge-go/internal/processor"
|
||||
@@ -49,6 +50,8 @@ func GetProcessorsSchema() *jsonschema.Schema {
|
||||
}
|
||||
processorDefinitionSchemas = append(processorDefinitionSchemas, processorSchema)
|
||||
}
|
||||
|
||||
slices.SortFunc(processorDefinitionSchemas, schemaCmp)
|
||||
schema.Items = &jsonschema.Schema{
|
||||
OneOf: processorDefinitionSchemas,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user