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_onreferences exist- No dependency cycles
nextreferences exist- Variable references in prompts refer to declared variables
savesvariable names are declared- Condition variable references are declared