This commit is contained in:
silverwind
2026-02-24 08:17:17 +01:00
parent 4fdf9ab904
commit b0ec3fa4fc
34 changed files with 94 additions and 101 deletions

View File

@@ -171,14 +171,11 @@ type StringDefinition struct {
IsExpression bool `json:"is-expression,omitempty"`
}
type NumberDefinition struct {
}
type NumberDefinition struct{}
type BooleanDefinition struct {
}
type BooleanDefinition struct{}
type NullDefinition struct {
}
type NullDefinition struct{}
func GetWorkflowSchema() *Schema {
sh := &Schema{}
@@ -462,7 +459,7 @@ func (s *Node) checkString(node *yaml.Node, def Definition) error {
}
func (s *Node) checkOneOf(def Definition, node *yaml.Node) error {
var invalidProps = math.MaxInt
invalidProps := math.MaxInt
var bestMatches ValidationErrorCollection
for _, v := range *def.OneOf {
// Use helper to create child node