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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Workflow

func Workflow(path string, opts Options) error

Workflow loads a definition from path and validates it (schema + graph + CEL + stub + inputSchemas).

func WorkflowDefinition

func WorkflowDefinition(def *definition.WorkflowDefinition, opts Options) error

WorkflowDefinition validates an already-decoded workflow definition. It runs JSON Schema (embedded or opts.SchemaPath), then graph, transition invariants, CEL, stub params, http params, step metadata, and inputSchema checks.

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 Workflow and WorkflowDefinition validation.

Jump to

Keyboard shortcuts

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