pub fn validate(spec: &FlowSpec) -> Result<(), ValidationError>
Validate a FlowSpec, returning all errors found.