@@ -342,12 +342,6 @@ embed.simple.a.err: field not allowed:
342
342
./in.cue:4:5
343
343
embed.withIndirect.err: field not allowed:
344
344
./in.cue:71:8
345
- issue3839.full.out.ingress.bar: field not allowed:
346
- ./issue3839.cue:27:4
347
- issue3839.full.out.ingress.foo: field not allowed:
348
- ./issue3839.cue:26:4
349
- issue3839.reduced.x.y: field not allowed:
350
- ./issue3839.cue:3:5
351
345
embed.openValidator.t2.a.b: invalid value 1 (does not satisfy matchN): 0 matched, expected 1:
352
346
./validators.cue:21:5
353
347
./validators.cue:21:12
@@ -735,24 +729,17 @@ Result:
735
729
}
736
730
}
737
731
}
738
- issue3839: (_|_){
739
- // [eval]
740
- reduced: (_|_){
741
- // [eval]
742
- x: (_|_){
743
- // [eval]
744
- y: (_|_){
745
- // [eval] issue3839.reduced.x.y: field not allowed:
746
- // ./issue3839.cue:3:5
747
- }
732
+ issue3839: (struct){
733
+ reduced: (struct){
734
+ x: (#struct){
735
+ y: (int){ 1 }
748
736
}
749
737
#B: (#struct){
750
738
}
751
739
A: (#struct){
752
740
}
753
741
}
754
- full: (_|_){
755
- // [eval]
742
+ full: (struct){
756
743
_globals: (struct){
757
744
glb: (struct){
758
745
globalField: (string){ "" }
@@ -765,21 +752,13 @@ Result:
765
752
glb: ~(issue3839.full.#GlobalContext)
766
753
out: ~(issue3839.full.#GlobalContext)
767
754
}
768
- out: (_|_){
769
- // [eval]
770
- ingress: (_|_){
771
- // [eval]
755
+ out: (struct){
756
+ ingress: (#struct){
772
757
#def: (#struct){
773
758
globalField: (string){ "" }
774
759
}
775
- foo: (_|_){
776
- // [eval] issue3839.full.out.ingress.foo: field not allowed:
777
- // ./issue3839.cue:26:4
778
- }
779
- bar: (_|_){
780
- // [eval] issue3839.full.out.ingress.bar: field not allowed:
781
- // ./issue3839.cue:27:4
782
- }
760
+ foo: (int){ 1234 }
761
+ bar: (string){ "http" }
783
762
}
784
763
}
785
764
#Embed: (#struct){
@@ -1010,7 +989,7 @@ Result:
1010
989
diff old new
1011
990
--- old
1012
991
+++ new
1013
- @@ -1,81 +1,35 @@
992
+ @@ -1,81 +1,29 @@
1014
993
Errors:
1015
994
and.transitive.out.ok: field not allowed:
1016
995
- ./in.cue:34:5
@@ -1089,16 +1068,10 @@ diff old new
1089
1068
- ./validators.cue:12:6
1090
1069
- ./validators.cue:17:5
1091
1070
- ./validators.cue:18:5
1092
- +issue3839.full.out.ingress.bar: field not allowed:
1093
- + ./issue3839.cue:27:4
1094
- +issue3839.full.out.ingress.foo: field not allowed:
1095
- + ./issue3839.cue:26:4
1096
- +issue3839.reduced.x.y: field not allowed:
1097
- + ./issue3839.cue:3:5
1098
1071
embed.openValidator.t2.a.b: invalid value 1 (does not satisfy matchN): 0 matched, expected 1:
1099
1072
./validators.cue:21:5
1100
1073
./validators.cue:21:12
1101
- @@ -94,14 +48 ,11 @@
1074
+ @@ -94,14 +42 ,11 @@
1102
1075
}
1103
1076
a: (_|_){
1104
1077
// [eval]
@@ -1114,7 +1087,7 @@ diff old new
1114
1087
}
1115
1088
}
1116
1089
andInStruct: (_|_){
1117
- @@ -111,14 +62 ,11 @@
1090
+ @@ -111,14 +56 ,11 @@
1118
1091
}
1119
1092
a: (_|_){
1120
1093
// [eval]
@@ -1130,7 +1103,7 @@ diff old new
1130
1103
}
1131
1104
}
1132
1105
embedDefWithEmbedding: (_|_){
1133
- @@ -128,15 +76 ,11 @@
1106
+ @@ -128,15 +70 ,11 @@
1134
1107
}
1135
1108
a: (_|_){
1136
1109
// [eval]
@@ -1147,7 +1120,7 @@ diff old new
1147
1120
}
1148
1121
}
1149
1122
embedComprehension: (_|_){
1150
- @@ -146,16 +90 ,11 @@
1123
+ @@ -146,16 +84 ,11 @@
1151
1124
}
1152
1125
a: (_|_){
1153
1126
// [eval]
@@ -1165,7 +1138,7 @@ diff old new
1165
1138
}
1166
1139
}
1167
1140
fieldWithAnd: (_|_){
1168
- @@ -166,9 +105 ,6 @@
1141
+ @@ -166,9 +99 ,6 @@
1169
1142
// [eval]
1170
1143
err: (_|_){
1171
1144
// [eval] embed.fieldWithAnd.a.err: field not allowed:
@@ -1175,7 +1148,7 @@ diff old new
1175
1148
// ./in.cue:20:13
1176
1149
}
1177
1150
}
1178
- @@ -179,20 +115 ,15 @@
1151
+ @@ -179,20 +109 ,15 @@
1179
1152
a: (int){ int }
1180
1153
}
1181
1154
B: (struct){
@@ -1201,7 +1174,7 @@ diff old new
1201
1174
}
1202
1175
}
1203
1176
andEmbed: (_|_){
1204
- @@ -208,17 +139 ,11 @@
1177
+ @@ -208,17 +133 ,11 @@
1205
1178
}
1206
1179
d: (_|_){
1207
1180
// [eval]
@@ -1220,7 +1193,7 @@ diff old new
1220
1193
}
1221
1194
}
1222
1195
nonDef: (struct){
1223
- @@ -227,12 +152 ,12 @@
1196
+ @@ -227,12 +146 ,12 @@
1224
1197
a: (string){ string }
1225
1198
}
1226
1199
#Y: (#struct){
@@ -1237,7 +1210,7 @@ diff old new
1237
1210
}
1238
1211
}
1239
1212
}
1240
- @@ -242,12 +167 ,12 @@
1213
+ @@ -242,12 +161 ,12 @@
1241
1214
Name: (string){ string }
1242
1215
}
1243
1216
#Step: (#struct){
@@ -1254,7 +1227,7 @@ diff old new
1254
1227
}
1255
1228
out: (#struct){
1256
1229
Name: (string){ "foo" }
1257
- @@ -257,21 +182 ,15 @@
1230
+ @@ -257,21 +176 ,15 @@
1258
1231
}
1259
1232
withIndirect: (_|_){
1260
1233
// [eval]
@@ -1281,7 +1254,7 @@ diff old new
1281
1254
}
1282
1255
normalValidator: (_|_){
1283
1256
// [eval]
1284
- @@ -281,20 +200 ,17 @@
1257
+ @@ -281,20 +194 ,17 @@
1285
1258
}
1286
1259
x: (_|_){
1287
1260
// [eval]
@@ -1305,7 +1278,7 @@ diff old new
1305
1278
#X: (_){
1306
1279
matchN(0, (#list){
1307
1280
})
1308
- @@ -301,17 +217 ,10 @@
1281
+ @@ -301,17 +211 ,10 @@
1309
1282
a?: (int){ int }
1310
1283
b?: (int){ int }
1311
1284
}
@@ -1327,7 +1300,7 @@ diff old new
1327
1300
}
1328
1301
}
1329
1302
t2: (_|_){
1330
- @@ -330,10 +239 ,7 @@
1303
+ @@ -330,10 +233 ,7 @@
1331
1304
// [eval]
1332
1305
b: (_|_){
1333
1306
// [eval] embed.openValidator.t2.a.b: conflicting values 1 and {b?:Y} (mismatched types int and struct):
@@ -1338,7 +1311,7 @@ diff old new
1338
1311
// ./validators.cue:24:8
1339
1312
// embed.openValidator.t2.a.b: invalid value 1 (does not satisfy matchN): 0 matched, expected 1:
1340
1313
// ./validators.cue:21:5
1341
- @@ -360,16 +266 ,11 @@
1314
+ @@ -360,16 +260 ,11 @@
1342
1315
}
1343
1316
out: (_|_){
1344
1317
// [eval]
@@ -1356,7 +1329,7 @@ diff old new
1356
1329
}
1357
1330
}
1358
1331
transitiveWithEmbed: (_|_){
1359
- @@ -385,17 +286 ,11 @@
1332
+ @@ -385,17 +280 ,11 @@
1360
1333
}
1361
1334
out: (_|_){
1362
1335
// [eval]
@@ -1375,7 +1348,7 @@ diff old new
1375
1348
}
1376
1349
}
1377
1350
}
1378
- @@ -414,8 +309 ,8 @@
1351
+ @@ -414,8 +303 ,8 @@
1379
1352
// ./issue3832.cue:8:16
1380
1353
}
1381
1354
outFirstName: (_|_){
@@ -1386,7 +1359,7 @@ diff old new
1386
1359
}
1387
1360
}
1388
1361
}
1389
- @@ -425,35 +320 ,27 @@
1362
+ @@ -425,35 +314 ,27 @@
1390
1363
}, (#struct){
1391
1364
pass: (#struct){
1392
1365
let self#1 = (_|_){
@@ -1432,7 +1405,7 @@ diff old new
1432
1405
pass: (#struct){
1433
1406
let self#1 = (#struct){
1434
1407
firstName: (string){ "Sam" }
1435
- @@ -460,18 +347 ,21 @@
1408
+ @@ -460,18 +341 ,21 @@
1436
1409
}
1437
1410
outFirstName: (string){ "Sam" }
1438
1411
}
@@ -1466,43 +1439,7 @@ diff old new
1466
1439
}
1467
1440
issue3833: (struct){
1468
1441
out: (#struct){
1469
- @@ -527,17 +417,24 @@
1470
- }
1471
- }
1472
- }
1473
- - issue3839: (struct){
1474
- - reduced: (struct){
1475
- - x: (#struct){
1476
- - y: (int){ 1 }
1477
- - }
1478
- - #B: (#struct){
1479
- - }
1480
- - A: (#struct){
1481
- - }
1482
- - }
1483
- - full: (struct){
1484
- + issue3839: (_|_){
1485
- + // [eval]
1486
- + reduced: (_|_){
1487
- + // [eval]
1488
- + x: (_|_){
1489
- + // [eval]
1490
- + y: (_|_){
1491
- + // [eval] issue3839.reduced.x.y: field not allowed:
1492
- + // ./issue3839.cue:3:5
1493
- + }
1494
- + }
1495
- + #B: (#struct){
1496
- + }
1497
- + A: (#struct){
1498
- + }
1499
- + }
1500
- + full: (_|_){
1501
- + // [eval]
1502
- _globals: (struct){
1503
- glb: (struct){
1504
- globalField: (string){ "" }
1505
- @@ -547,20 +444,24 @@
1442
+ @@ -547,12 +431,8 @@
1506
1443
globalField: (string){ string }
1507
1444
}
1508
1445
#Context: (#struct){
@@ -1512,33 +1449,12 @@ diff old new
1512
1449
- out: (#struct){
1513
1450
- globalField: (string){ string }
1514
1451
- }
1515
- - }
1516
- - out: (struct){
1517
- - ingress: (#struct){
1518
1452
+ glb: ~(issue3839.full.#GlobalContext)
1519
1453
+ out: ~(issue3839.full.#GlobalContext)
1520
- + }
1521
- + out: (_|_){
1522
- + // [eval]
1523
- + ingress: (_|_){
1524
- + // [eval]
1525
- #def: (#struct){
1526
- globalField: (string){ "" }
1527
- }
1528
- - foo: (int){ 1234 }
1529
- - bar: (string){ "http" }
1530
- + foo: (_|_){
1531
- + // [eval] issue3839.full.out.ingress.foo: field not allowed:
1532
- + // ./issue3839.cue:26:4
1533
- + }
1534
- + bar: (_|_){
1535
- + // [eval] issue3839.full.out.ingress.bar: field not allowed:
1536
- + // ./issue3839.cue:27:4
1537
- + }
1538
- }
1539
1454
}
1540
- #Embed: (#struct){
1541
- @@ -580,22 +481,22 @@
1455
+ out: (struct){
1456
+ ingress: (#struct){
1457
+ @@ -580,22 +460,22 @@
1542
1458
#Z: (#struct){
1543
1459
}
1544
1460
x: (#struct){
@@ -1577,7 +1493,7 @@ diff old new
1577
1493
z: (int){ 1 }
1578
1494
}
1579
1495
}
1580
- @@ -605,22 +506 ,22 @@
1496
+ @@ -605,22 +485 ,22 @@
1581
1497
#Z: (#struct){
1582
1498
}
1583
1499
x: (#struct){
@@ -1616,7 +1532,7 @@ diff old new
1616
1532
z: (int){ 1 }
1617
1533
}
1618
1534
}
1619
- @@ -675,38 +576 ,11 @@
1535
+ @@ -675,38 +555 ,11 @@
1620
1536
#Main: (#struct){
1621
1537
namespace: (string){ string }
1622
1538
output: (_|_){
@@ -1657,7 +1573,7 @@ diff old new
1657
1573
let base#6 = (#struct){
1658
1574
someMsg: (string){ string }
1659
1575
obs: (#struct){ |(*(#struct){
1660
- @@ -749,6 +623 ,19 @@
1576
+ @@ -749,6 +602 ,19 @@
1661
1577
}
1662
1578
}
1663
1579
}
@@ -1677,7 +1593,7 @@ diff old new
1677
1593
}
1678
1594
}
1679
1595
out: (#struct){
1680
- @@ -768,7 +655 ,9 @@
1596
+ @@ -768,7 +634 ,9 @@
1681
1597
}
1682
1598
out: (#struct){
1683
1599
b1: (_|_){
@@ -1688,7 +1604,7 @@ diff old new
1688
1604
// disjunction.withErr.t1.out.b1: conflicting values null and {b2:{b3:params.mayExistLater}} (mismatched types null and struct):
1689
1605
// ./validators.cue:29:7
1690
1606
// ./validators.cue:31:17
1691
- @@ -778,17 +667 ,8 @@
1607
+ @@ -778,17 +646 ,8 @@
1692
1608
// ./validators.cue:32:17
1693
1609
// disjunction.withErr.t1.out.b1.b2.b3: undefined field: mayExistLater:
1694
1610
// ./validators.cue:29:22
0 commit comments