Validates a workflow object for required fields and structure.
Value
A list with components:
- valid
Logical, whether workflow is valid
- errors
Character vector of error messages (empty if valid)
- warnings
Character vector of warning messages
Examples
# Read a workflow
path <- system.file(
"mcp", "workflows", "rave_pipeline_class_guide.yaml",
package = "ravepipeline"
)
wf <- mcpflow_read(path)
# Validate (lightweight)
result <- mcpflow_validate(wf)
result$valid
#> [1] TRUE
# Validate (strict schema validation)
result <- mcpflow_validate(wf, strict = TRUE)
result$valid
#> [1] FALSE