Documentation
¶
Overview ¶
Package validate checks workflow definitions against JSON Schema and Maestro rules.
Use WorkflowFile for the same checks as the maestro validate CLI, or WorkflowDefinition after decoding with github.com/justinush/maestro/pkg/definition. github.com/justinush/maestro/pkg/maestro.Load* runs validation automatically.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WorkflowDefinition ¶
func WorkflowDefinition(def *definition.WorkflowDefinition, opts Options) error
WorkflowDefinition validates def in memory (graph, CEL, stubs, input schemas, etc.).
func WorkflowFile ¶
WorkflowFile loads path and runs the same validation as the maestro validate CLI.
Types ¶
type Options ¶
type Options struct {
// SchemaPath is the path to a JSON Schema file; empty uses the embedded workflow schema.
SchemaPath string
// Verbose includes raw schema validator messages in returned errors.
Verbose bool
}
Options configures validation (JSON Schema source, verbose diagnostics, etc.).
Click to show internal directories.
Click to hide internal directories.