Workflow validation can be used to verify the contents of a workflow output file.
To validate a workflow, you must have a validation script written in
A path to the script can be passed to the
run command of the
polywrap CLI using the
Validation files are written in CUE, an open-source data validation language. It has a simple syntax and is easy to use. CUE provides flexible data validation, including:
- matching exact values
- matching types
- matching bounds (e.g. result > 2)
- matching regular expressions
To validate a workflow, you must have CUE installed on your computer.
A validation script should match the structure of the workflow it seeks to validate. It is compared against the output of the workflow.
To validate a particular job in a workflow, your validation file should be modified to match the output of that particular job.