1 { writeCueValidator, runCommand, writeText, ... }:
4 validator = writeCueValidator
5 (writeText "schema.cue" ''
10 { document = "#Def1"; };
11 in runCommand "cue-validation" {} ''
12 cat > valid.json <<EOF
15 cat > invalid.json <<EOF
18 ${validator} valid.json
19 if ${validator} invalid.json; then
20 echo "this example should fail"