We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b17ea50 commit 587d5a1Copy full SHA for 587d5a1
cmd/cue/cmd/testdata/script/vet_matchn.txtar
@@ -0,0 +1,32 @@
1
+# With the old evaluator.
2
+env CUE_EXPERIMENT=evalv3=0
3
+exec cue vet -c schema.cue data.json
4
+
5
+# With the new evaluator.
6
+env CUE_EXPERIMENT=evalv3=1
7
+env CUE_DEBUG=openinline=0
8
+! exec cue vet -c schema.cue data.json #TODO Fix
9
10
+-- data.json --
11
+{
12
+ "step": {
13
+ "run": "echo foo"
14
+ }
15
+}
16
+-- schema.cue --
17
+package githubactions
18
19
+#Workflow
20
21
+#Workflow: {
22
+ step!: matchN(1, [{
23
+ "uses"!: _
24
+ ...
25
+ }, {
26
+ "run"!: _
27
28
+ }]) & close({
29
+ "uses"?: string
30
+ "run"?: string
31
+ })
32
0 commit comments