Skip to main content

validate

Function validate 

Source
pub fn validate(workflow: &Workflow) -> Result<(), Vec<ZigError>>
Expand description

Validate a parsed workflow for structural correctness.

Checks:

  • At least one step exists
  • Step names are unique
  • depends_on references exist
  • No dependency cycles
  • next references exist
  • Variable references in prompts refer to declared variables
  • saves variable names are declared
  • Condition variable references are declared