fix additionProperties in JSONSchema and add IDs to everything

This commit is contained in:
Joel Wetzell
2026-03-30 20:58:39 -05:00
parent 979addeff8
commit f57f9d8ce5
55 changed files with 77 additions and 58 deletions

View File

@@ -1,6 +1,10 @@
package schema
import "github.com/google/jsonschema-go/jsonschema"
import (
"encoding/json"
"github.com/google/jsonschema-go/jsonschema"
)
var RoutesConfigSchema = jsonschema.Schema{
Schema: "https://json-schema.org/draft/2020-12/schema",
@@ -19,6 +23,8 @@ var RoutesConfigSchema = jsonschema.Schema{
Ref: "https://showbridge.io/processors.schema.json",
},
},
Required: []string{"input"},
Required: []string{"input"},
AdditionalProperties: &jsonschema.Schema{Not: &jsonschema.Schema{}},
},
Default: json.RawMessage(`[]`),
}