m3resp.workflows.validate_spec#
- m3resp.workflows.validate_spec(spec, *, available=None)[source]#
Check workflow structure and raise for its first error.
- Parameters:
spec (WorkflowSpec) – Parsed workflow to inspect.
available (set[str] | None) – Additional context keys supplied before execution.
- Raises:
UnknownStepError – If the first error concerns an unregistered operation.
WorkflowSpecError – If the first error concerns inputs, outputs, parameter references, values or other workflow structure.
- Return type:
None
Use collect_diagnostics to obtain the complete diagnostic list.