validate

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2026 License: MIT Imports: 2 Imported by: 0

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

func WorkflowFile(path string, opts Options) error

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.).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL