@@ -525,9 +525,6 @@ embed.withIndirect.err: field not allowed:
525
525
./in.cue:87:8
526
526
issue3920.out.a.b: field not allowed:
527
527
./chaineddef.cue:5:6
528
- issue3934.out.foo: field not allowed:
529
- ./issue3934.cue:3:3
530
- ./issue3934.cue:9:8
531
528
embed.openValidator.t2.a.b: invalid value 1 (does not satisfy matchN): 0 matched, expected 1:
532
529
./validators.cue:21:5
533
530
./validators.cue:21:12
@@ -1315,14 +1312,9 @@ Result:
1315
1312
out: ~(reduced.t2._in)
1316
1313
}
1317
1314
}
1318
- issue3934: (_|_){
1319
- // [eval]
1320
- out: (_|_){
1321
- // [eval]
1322
- foo: (_|_){
1323
- // [eval] issue3934.out.foo: field not allowed:
1324
- // ./issue3934.cue:3:3
1325
- // ./issue3934.cue:9:8
1315
+ issue3934: (struct){
1316
+ out: (#struct){
1317
+ foo: (#struct){
1326
1318
}
1327
1319
}
1328
1320
#Foo: (#struct){
@@ -1502,7 +1494,7 @@ Result:
1502
1494
diff old new
1503
1495
--- old
1504
1496
+++ new
1505
- @@ -1,81 +1,34 @@
1497
+ @@ -1,81 +1,31 @@
1506
1498
Errors:
1507
1499
and.transitive.err.out.err: field not allowed:
1508
1500
- ./in.cue:42:5
@@ -1583,13 +1575,10 @@ diff old new
1583
1575
- ./validators.cue:18:5
1584
1576
+issue3920.out.a.b: field not allowed:
1585
1577
+ ./chaineddef.cue:5:6
1586
- +issue3934.out.foo: field not allowed:
1587
- + ./issue3934.cue:3:3
1588
- + ./issue3934.cue:9:8
1589
1578
embed.openValidator.t2.a.b: invalid value 1 (does not satisfy matchN): 0 matched, expected 1:
1590
1579
./validators.cue:21:5
1591
1580
./validators.cue:21:12
1592
- @@ -85,17 +38 ,21 @@
1581
+ @@ -85,17 +35 ,21 @@
1593
1582
Result:
1594
1583
(_|_){
1595
1584
// [eval]
@@ -1622,7 +1611,7 @@ diff old new
1622
1611
}
1623
1612
#B: (#struct){
1624
1613
c?: (string){ string }
1625
- @@ -181,14 +138 ,11 @@
1614
+ @@ -181,14 +135 ,11 @@
1626
1615
}
1627
1616
a: (_|_){
1628
1617
// [eval]
@@ -1638,7 +1627,7 @@ diff old new
1638
1627
}
1639
1628
}
1640
1629
andInStruct: (_|_){
1641
- @@ -198,14 +152 ,11 @@
1630
+ @@ -198,14 +149 ,11 @@
1642
1631
}
1643
1632
a: (_|_){
1644
1633
// [eval]
@@ -1654,7 +1643,7 @@ diff old new
1654
1643
}
1655
1644
}
1656
1645
embedDefWithEmbedding: (_|_){
1657
- @@ -215,15 +166 ,11 @@
1646
+ @@ -215,15 +163 ,11 @@
1658
1647
}
1659
1648
a: (_|_){
1660
1649
// [eval]
@@ -1671,7 +1660,7 @@ diff old new
1671
1660
}
1672
1661
}
1673
1662
embedComprehension: (_|_){
1674
- @@ -233,16 +180 ,11 @@
1663
+ @@ -233,16 +177 ,11 @@
1675
1664
}
1676
1665
a: (_|_){
1677
1666
// [eval]
@@ -1689,7 +1678,7 @@ diff old new
1689
1678
}
1690
1679
}
1691
1680
fieldWithAnd: (_|_){
1692
- @@ -253,9 +195 ,6 @@
1681
+ @@ -253,9 +192 ,6 @@
1693
1682
// [eval]
1694
1683
err: (_|_){
1695
1684
// [eval] embed.fieldWithAnd.a.err: field not allowed:
@@ -1699,7 +1688,7 @@ diff old new
1699
1688
// ./in.cue:20:13
1700
1689
}
1701
1690
}
1702
- @@ -266,20 +205 ,15 @@
1691
+ @@ -266,20 +202 ,15 @@
1703
1692
a: (int){ int }
1704
1693
}
1705
1694
B: (struct){
@@ -1725,7 +1714,7 @@ diff old new
1725
1714
}
1726
1715
}
1727
1716
andEmbed: (_|_){
1728
- @@ -295,17 +229 ,11 @@
1717
+ @@ -295,17 +226 ,11 @@
1729
1718
}
1730
1719
d: (_|_){
1731
1720
// [eval]
@@ -1744,7 +1733,7 @@ diff old new
1744
1733
}
1745
1734
}
1746
1735
nonDef: (struct){
1747
- @@ -314,12 +242 ,12 @@
1736
+ @@ -314,12 +239 ,12 @@
1748
1737
a: (string){ string }
1749
1738
}
1750
1739
#Y: (#struct){
@@ -1761,7 +1750,7 @@ diff old new
1761
1750
}
1762
1751
}
1763
1752
}
1764
- @@ -329,12 +257 ,12 @@
1753
+ @@ -329,12 +254 ,12 @@
1765
1754
Name: (string){ string }
1766
1755
}
1767
1756
#Step: (#struct){
@@ -1778,7 +1767,7 @@ diff old new
1778
1767
}
1779
1768
out: (#struct){
1780
1769
Name: (string){ "foo" }
1781
- @@ -344,21 +272 ,15 @@
1770
+ @@ -344,21 +269 ,15 @@
1782
1771
}
1783
1772
withIndirect: (_|_){
1784
1773
// [eval]
@@ -1805,7 +1794,7 @@ diff old new
1805
1794
}
1806
1795
normalValidator: (_|_){
1807
1796
// [eval]
1808
- @@ -368,20 +290 ,17 @@
1797
+ @@ -368,20 +287 ,17 @@
1809
1798
}
1810
1799
x: (_|_){
1811
1800
// [eval]
@@ -1829,7 +1818,7 @@ diff old new
1829
1818
#X: (_){
1830
1819
matchN(0, (#list){
1831
1820
})
1832
- @@ -388,17 +307 ,10 @@
1821
+ @@ -388,17 +304 ,10 @@
1833
1822
a?: (int){ int }
1834
1823
b?: (int){ int }
1835
1824
}
@@ -1851,7 +1840,7 @@ diff old new
1851
1840
}
1852
1841
}
1853
1842
t2: (_|_){
1854
- @@ -417,10 +329 ,7 @@
1843
+ @@ -417,10 +326 ,7 @@
1855
1844
// [eval]
1856
1845
b: (_|_){
1857
1846
// [eval] embed.openValidator.t2.a.b: conflicting values 1 and {b?:Y} (mismatched types int and struct):
@@ -1862,7 +1851,7 @@ diff old new
1862
1851
// ./validators.cue:24:8
1863
1852
// embed.openValidator.t2.a.b: invalid value 1 (does not satisfy matchN): 0 matched, expected 1:
1864
1853
// ./validators.cue:21:5
1865
- @@ -463,16 +372 ,11 @@
1854
+ @@ -463,16 +369 ,11 @@
1866
1855
}
1867
1856
out: (_|_){
1868
1857
// [eval]
@@ -1880,7 +1869,7 @@ diff old new
1880
1869
}
1881
1870
}
1882
1871
}
1883
- @@ -505,17 +409 ,11 @@
1872
+ @@ -505,17 +406 ,11 @@
1884
1873
}
1885
1874
out: (_|_){
1886
1875
// [eval]
@@ -1899,7 +1888,7 @@ diff old new
1899
1888
}
1900
1889
}
1901
1890
}
1902
- @@ -561,8 +459 ,8 @@
1891
+ @@ -561,8 +456 ,8 @@
1903
1892
// ./issue3832.cue:8:16
1904
1893
}
1905
1894
outFirstName: (_|_){
@@ -1910,7 +1899,7 @@ diff old new
1910
1899
}
1911
1900
}
1912
1901
}
1913
- @@ -572,35 +470 ,27 @@
1902
+ @@ -572,35 +467 ,27 @@
1914
1903
}, (#struct){
1915
1904
pass: (#struct){
1916
1905
let self#1 = (_|_){
@@ -1956,7 +1945,7 @@ diff old new
1956
1945
pass: (#struct){
1957
1946
let self#1 = (#struct){
1958
1947
firstName: (string){ "Sam" }
1959
- @@ -607,18 +497 ,21 @@
1948
+ @@ -607,18 +494 ,21 @@
1960
1949
}
1961
1950
outFirstName: (string){ "Sam" }
1962
1951
}
@@ -1990,7 +1979,7 @@ diff old new
1990
1979
}
1991
1980
issue3833: (struct){
1992
1981
out: (#struct){
1993
- @@ -694,12 +587 ,8 @@
1982
+ @@ -694,12 +584 ,8 @@
1994
1983
globalField: (string){ string }
1995
1984
}
1996
1985
#Context: (#struct){
@@ -2005,7 +1994,7 @@ diff old new
2005
1994
}
2006
1995
out: (struct){
2007
1996
ingress: (#struct){
2008
- @@ -727,22 +616 ,22 @@
1997
+ @@ -727,22 +613 ,22 @@
2009
1998
#Z: (#struct){
2010
1999
}
2011
2000
x: (#struct){
@@ -2044,7 +2033,7 @@ diff old new
2044
2033
z: (int){ 1 }
2045
2034
}
2046
2035
}
2047
- @@ -752,22 +641 ,22 @@
2036
+ @@ -752,22 +638 ,22 @@
2048
2037
#Z: (#struct){
2049
2038
}
2050
2039
x: (#struct){
@@ -2083,7 +2072,7 @@ diff old new
2083
2072
z: (int){ 1 }
2084
2073
}
2085
2074
}
2086
- @@ -782,11 +671 ,7 @@
2075
+ @@ -782,11 +668 ,7 @@
2087
2076
}
2088
2077
}
2089
2078
#JobConfig: (#struct){
@@ -2096,7 +2085,7 @@ diff old new
2096
2085
job: (#struct){
2097
2086
image: (string){ "foo:v1" }
2098
2087
vcs: (string){ "git" }
2099
- @@ -850,7 +735 ,7 @@
2088
+ @@ -850,7 +732 ,7 @@
2100
2089
}
2101
2090
}
2102
2091
out: (#struct){
@@ -2105,7 +2094,7 @@ diff old new
2105
2094
input: (#struct){
2106
2095
image: (string){ "someimage" }
2107
2096
env: (string){ "FOO" }
2108
- @@ -882,11 +767 ,11 @@
2097
+ @@ -882,11 +764 ,11 @@
2109
2098
_in: (_){ _ }
2110
2099
out: (_){ _ }
2111
2100
}
@@ -2122,7 +2111,7 @@ diff old new
2122
2111
e: (string){ "foo" }
2123
2112
f: (int){ 1 }
2124
2113
}
2125
- @@ -919,35 +804,27 @@
2114
+ @@ -919,35 +801,22 @@
2126
2115
_in: (_){ _ }
2127
2116
out: (_){ _ }
2128
2117
}
@@ -2144,17 +2133,6 @@ diff old new
2144
2133
- f: (int){ 1 }
2145
2134
- }
2146
2135
- }
2147
- - }
2148
- - }
2149
- - issue3934: (struct){
2150
- - out: (#struct){
2151
- - foo: ((null|struct)){ |(*(#struct){
2152
- - bar: (int){ 3 }
2153
- - }, (#struct){
2154
- - extra?: ((null|struct)){ |((null){ null }, (#struct){
2155
- - }) }
2156
- - bar?: (int){ int }
2157
- - }, (null){ null }) }
2158
2136
+ _in: (#struct){
2159
2137
+ a: (#struct){
2160
2138
+ e: (string){ "foo" }
@@ -2165,21 +2143,23 @@ diff old new
2165
2143
+ }
2166
2144
+ }
2167
2145
+ out: ~(reduced.t2._in)
2168
- + }
2169
- + }
2170
- + issue3934: (_|_){
2171
- + // [eval]
2172
- + out: (_|_){
2173
- + // [eval]
2174
- + foo: (_|_){
2175
- + // [eval] issue3934.out.foo: field not allowed:
2176
- + // ./issue3934.cue:3:3
2177
- + // ./issue3934.cue:9:8
2146
+ }
2147
+ }
2148
+ issue3934: (struct){
2149
+ out: (#struct){
2150
+ - foo: ((null|struct)){ |(*(#struct){
2151
+ - bar: (int){ 3 }
2152
+ - }, (#struct){
2153
+ - extra?: ((null|struct)){ |((null){ null }, (#struct){
2154
+ - }) }
2155
+ - bar?: (int){ int }
2156
+ - }, (null){ null }) }
2157
+ + foo: (#struct){
2178
2158
+ }
2179
2159
}
2180
2160
#Foo: (#struct){
2181
2161
foo?: ((null|struct)){ |(*(#struct){
2182
- @@ -1012,38 +889 ,11 @@
2162
+ @@ -1012,38 +881 ,11 @@
2183
2163
#Main: (#struct){
2184
2164
namespace: (string){ string }
2185
2165
output: (_|_){
@@ -2220,7 +2200,7 @@ diff old new
2220
2200
let base#6 = (#struct){
2221
2201
someMsg: (string){ string }
2222
2202
obs: (#struct){ |(*(#struct){
2223
- @@ -1086,6 +936 ,19 @@
2203
+ @@ -1086,6 +928 ,19 @@
2224
2204
}
2225
2205
}
2226
2206
}
@@ -2240,7 +2220,7 @@ diff old new
2240
2220
}
2241
2221
}
2242
2222
out: (#struct){
2243
- @@ -1115,17 +978 ,8 @@
2223
+ @@ -1115,17 +970 ,8 @@
2244
2224
// ./validators.cue:32:17
2245
2225
// disjunction.withErr.t1.out.b1.b2.b3: undefined field: mayExistLater:
2246
2226
// ./validators.cue:29:22
0 commit comments