File tree Expand file tree Collapse file tree 3 files changed +70
-127
lines changed Expand file tree Collapse file tree 3 files changed +70
-127
lines changed Original file line number Diff line number Diff line change @@ -24,15 +24,7 @@ Unifications: 20
24
24
Conjuncts: 34
25
25
Disjuncts: 26
26
26
-- out/evalalpha --
27
- Errors:
28
- c: field not allowed:
29
- ./in.cue:5:1
30
- x: field not allowed:
31
- ./in.cue:8:1
32
-
33
- Result:
34
- (_|_){
35
- // [eval]
27
+ (#struct){
36
28
_schema: ~(#Schema)
37
29
#Schema: (#struct){
38
30
a?: (#struct){
@@ -42,103 +34,48 @@ Result:
42
34
a: (#struct){
43
35
b: (string){ "foo" }
44
36
}
45
- c: (_|_){
46
- // [eval] c: field not allowed:
47
- // ./in.cue:5:1
48
- }
49
- x: (_|_){
50
- // [eval] x: field not allowed:
51
- // ./in.cue:8:1
37
+ c: (string){ "foo" }
38
+ x: (#struct){
52
39
_schema: ~(x.#Schema)
53
40
#Schema: (#struct){
54
41
a?: (#struct){
55
42
b?: (string){ string }
56
43
}
57
44
}
58
- a: (_|_){
59
- // [eval] x.a: field not allowed:
60
- // ./in.cue:11:11
61
- // ./in.cue:12:2
62
- b: (_|_){
63
- // [eval] x.a.b: field not allowed:
64
- // ./in.cue:11:15
65
- // ./in.cue:12:5
66
- }
67
- }
68
- c: (_|_){
69
- // [eval] x.c: field not allowed:
70
- // ./in.cue:13:2
45
+ a: (#struct){
46
+ b: (string){ "foo" }
71
47
}
48
+ c: (string){ "foo" }
72
49
}
73
50
}
74
51
-- diff/-out/evalalpha<==>+out/eval --
75
52
diff old new
76
53
--- old
77
54
+++ new
78
- @@ -1,9 +1,13 @@
79
- - (#struct){
55
+ @@ -1,9 +1,5 @@
56
+ (#struct){
80
57
- _schema: (#struct){
81
58
- a?: (#struct){
82
59
- b?: (string){ string }
83
60
- }
84
61
- }
85
- +Errors:
86
- +c: field not allowed:
87
- + ./in.cue:5:1
88
- +x: field not allowed:
89
- + ./in.cue:8:1
90
- +
91
- +Result:
92
- +(_|_){
93
- + // [eval]
94
62
+ _schema: ~(#Schema)
95
63
#Schema: (#struct){
96
64
a?: (#struct){
97
65
b?: (string){ string }
98
- @@ -12,21 +16,32 @@
99
- a: (#struct){
100
- b: (string){ "foo" }
66
+ @@ -14,11 +10,7 @@
101
67
}
102
- - c: (string){ "foo" }
103
- - x: (#struct){
68
+ c: (string){ "foo" }
69
+ x: (#struct){
104
70
- _schema: (#struct){
105
71
- a?: (#struct){
106
72
- b?: (string){ string }
107
73
- }
108
74
- }
109
- + c: (_|_){
110
- + // [eval] c: field not allowed:
111
- + // ./in.cue:5:1
112
- + }
113
- + x: (_|_){
114
- + // [eval] x: field not allowed:
115
- + // ./in.cue:8:1
116
75
+ _schema: ~(x.#Schema)
117
76
#Schema: (#struct){
118
77
a?: (#struct){
119
78
b?: (string){ string }
120
- }
121
- }
122
- - a: (#struct){
123
- - b: (string){ "foo" }
124
- - }
125
- - c: (string){ "foo" }
126
- + a: (_|_){
127
- + // [eval] x.a: field not allowed:
128
- + // ./in.cue:11:11
129
- + // ./in.cue:12:2
130
- + b: (_|_){
131
- + // [eval] x.a.b: field not allowed:
132
- + // ./in.cue:11:15
133
- + // ./in.cue:12:5
134
- + }
135
- + }
136
- + c: (_|_){
137
- + // [eval] x.c: field not allowed:
138
- + // ./in.cue:13:2
139
- + }
140
- }
141
- }
142
79
-- out/eval --
143
80
(#struct){
144
81
_schema: (#struct){
You can’t perform that action at this time.
0 commit comments