@dvsa/cvs-type-definitions 4.2.0 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -84,6 +84,7 @@
84
84
  "items": {
85
85
  "title": "Additional Examiner Notes",
86
86
  "additionalProperties": false,
87
+ "type": "object",
87
88
  "properties": {
88
89
  "note": {
89
90
  "type": [
@@ -1182,5 +1183,111 @@
1182
1183
  "string"
1183
1184
  ]
1184
1185
  }
1186
+ },
1187
+ "if": {
1188
+ "properties": {
1189
+ "techRecord_adrDetails_dangerousGoods": {
1190
+ "const": true
1191
+ }
1192
+ },
1193
+ "required": [
1194
+ "techRecord_adrDetails_dangerousGoods"
1195
+ ]
1196
+ },
1197
+ "then": {
1198
+ "required": [
1199
+ "techRecord_adrDetails_vehicleDetails_type",
1200
+ "techRecord_adrDetails_vehicleDetails_approvalDate",
1201
+ "techRecord_adrDetails_permittedDangerousGoods",
1202
+ "techRecord_adrDetails_additionalNotes_number"
1203
+ ],
1204
+ "allOf": [
1205
+ {
1206
+ "if": {
1207
+ "properties": {
1208
+ "techRecord_adrDetails_permittedDangerousGoods": {
1209
+ "type": "array",
1210
+ "contains": {
1211
+ "type": "string",
1212
+ "pattern": "^Explosives \\(type \\d\\)$"
1213
+ }
1214
+ }
1215
+ },
1216
+ "required": [
1217
+ "techRecord_adrDetails_permittedDangerousGoods"
1218
+ ]
1219
+ },
1220
+ "then": {
1221
+ "required": [
1222
+ "techRecord_adrDetails_compatibilityGroupJ"
1223
+ ]
1224
+ }
1225
+ },
1226
+ {
1227
+ "if": {
1228
+ "properties": {
1229
+ "techRecord_adrDetails_vehicleDetails_type": {
1230
+ "enum": [
1231
+ "Rigid tank",
1232
+ "Rigid battery",
1233
+ "Full drawbar tank",
1234
+ "Full drawbar battery",
1235
+ "Centre axle tank",
1236
+ "Centre axle battery",
1237
+ "Semi trailer tank",
1238
+ "Semi trailer battery"
1239
+ ]
1240
+ }
1241
+ },
1242
+ "required": [
1243
+ "techRecord_adrDetails_vehicleDetails_type"
1244
+ ]
1245
+ },
1246
+ "then": {
1247
+ "required": [
1248
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturer",
1249
+ "techRecord_adrDetails_tank_tankDetails_yearOfManufacture",
1250
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturerSerialNo",
1251
+ "techRecord_adrDetails_tank_tankDetails_tankTypeAppNo",
1252
+ "techRecord_adrDetails_tank_tankDetails_tankCode",
1253
+ "techRecord_adrDetails_tank_tankDetails_tankStatement_substancesPermitted"
1254
+ ]
1255
+ }
1256
+ },
1257
+ {
1258
+ "if": {
1259
+ "properties": {
1260
+ "techRecord_adrDetails_listStatementApplicable": {
1261
+ "const": true
1262
+ }
1263
+ },
1264
+ "required": [
1265
+ "techRecord_adrDetails_listStatementApplicable"
1266
+ ]
1267
+ },
1268
+ "then": {
1269
+ "required": [
1270
+ "techRecord_adrDetails_batteryListNumber"
1271
+ ]
1272
+ }
1273
+ },
1274
+ {
1275
+ "if": {
1276
+ "properties": {
1277
+ "techRecord_adrDetails_brakeEndurance": {
1278
+ "const": true
1279
+ }
1280
+ },
1281
+ "required": [
1282
+ "techRecord_adrDetails_brakeEndurance"
1283
+ ]
1284
+ },
1285
+ "then": {
1286
+ "required": [
1287
+ "techRecord_adrDetails_weight"
1288
+ ]
1289
+ }
1290
+ }
1291
+ ]
1185
1292
  }
1186
1293
  }
@@ -133,6 +133,7 @@
133
133
  "items": {
134
134
  "title": "Additional Examiner Notes",
135
135
  "additionalProperties": false,
136
+ "type": "object",
136
137
  "properties": {
137
138
  "note": {
138
139
  "type": [
@@ -628,5 +629,111 @@
628
629
  }
629
630
  ]
630
631
  }
632
+ },
633
+ "if": {
634
+ "properties": {
635
+ "techRecord_adrDetails_dangerousGoods": {
636
+ "const": true
637
+ }
638
+ },
639
+ "required": [
640
+ "techRecord_adrDetails_dangerousGoods"
641
+ ]
642
+ },
643
+ "then": {
644
+ "required": [
645
+ "techRecord_adrDetails_vehicleDetails_type",
646
+ "techRecord_adrDetails_vehicleDetails_approvalDate",
647
+ "techRecord_adrDetails_permittedDangerousGoods",
648
+ "techRecord_adrDetails_additionalNotes_number"
649
+ ],
650
+ "allOf": [
651
+ {
652
+ "if": {
653
+ "properties": {
654
+ "techRecord_adrDetails_permittedDangerousGoods": {
655
+ "type": "array",
656
+ "contains": {
657
+ "type": "string",
658
+ "pattern": "^Explosives \\(type \\d\\)$"
659
+ }
660
+ }
661
+ },
662
+ "required": [
663
+ "techRecord_adrDetails_permittedDangerousGoods"
664
+ ]
665
+ },
666
+ "then": {
667
+ "required": [
668
+ "techRecord_adrDetails_compatibilityGroupJ"
669
+ ]
670
+ }
671
+ },
672
+ {
673
+ "if": {
674
+ "properties": {
675
+ "techRecord_adrDetails_vehicleDetails_type": {
676
+ "enum": [
677
+ "Rigid tank",
678
+ "Rigid battery",
679
+ "Full drawbar tank",
680
+ "Full drawbar battery",
681
+ "Centre axle tank",
682
+ "Centre axle battery",
683
+ "Semi trailer tank",
684
+ "Semi trailer battery"
685
+ ]
686
+ }
687
+ },
688
+ "required": [
689
+ "techRecord_adrDetails_vehicleDetails_type"
690
+ ]
691
+ },
692
+ "then": {
693
+ "required": [
694
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturer",
695
+ "techRecord_adrDetails_tank_tankDetails_yearOfManufacture",
696
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturerSerialNo",
697
+ "techRecord_adrDetails_tank_tankDetails_tankTypeAppNo",
698
+ "techRecord_adrDetails_tank_tankDetails_tankCode",
699
+ "techRecord_adrDetails_tank_tankDetails_tankStatement_substancesPermitted"
700
+ ]
701
+ }
702
+ },
703
+ {
704
+ "if": {
705
+ "properties": {
706
+ "techRecord_adrDetails_listStatementApplicable": {
707
+ "const": true
708
+ }
709
+ },
710
+ "required": [
711
+ "techRecord_adrDetails_listStatementApplicable"
712
+ ]
713
+ },
714
+ "then": {
715
+ "required": [
716
+ "techRecord_adrDetails_batteryListNumber"
717
+ ]
718
+ }
719
+ },
720
+ {
721
+ "if": {
722
+ "properties": {
723
+ "techRecord_adrDetails_brakeEndurance": {
724
+ "const": true
725
+ }
726
+ },
727
+ "required": [
728
+ "techRecord_adrDetails_brakeEndurance"
729
+ ]
730
+ },
731
+ "then": {
732
+ "required": [
733
+ "techRecord_adrDetails_weight"
734
+ ]
735
+ }
736
+ }
737
+ ]
631
738
  }
632
739
  }
@@ -130,6 +130,7 @@
130
130
  "items": {
131
131
  "title": "Additional Examiner Notes",
132
132
  "additionalProperties": false,
133
+ "type": "object",
133
134
  "properties": {
134
135
  "note": {
135
136
  "type": [
@@ -633,5 +634,111 @@
633
634
  }
634
635
  ]
635
636
  }
637
+ },
638
+ "if": {
639
+ "properties": {
640
+ "techRecord_adrDetails_dangerousGoods": {
641
+ "const": true
642
+ }
643
+ },
644
+ "required": [
645
+ "techRecord_adrDetails_dangerousGoods"
646
+ ]
647
+ },
648
+ "then": {
649
+ "required": [
650
+ "techRecord_adrDetails_vehicleDetails_type",
651
+ "techRecord_adrDetails_vehicleDetails_approvalDate",
652
+ "techRecord_adrDetails_permittedDangerousGoods",
653
+ "techRecord_adrDetails_additionalNotes_number"
654
+ ],
655
+ "allOf": [
656
+ {
657
+ "if": {
658
+ "properties": {
659
+ "techRecord_adrDetails_permittedDangerousGoods": {
660
+ "type": "array",
661
+ "contains": {
662
+ "type": "string",
663
+ "pattern": "^Explosives \\(type \\d\\)$"
664
+ }
665
+ }
666
+ },
667
+ "required": [
668
+ "techRecord_adrDetails_permittedDangerousGoods"
669
+ ]
670
+ },
671
+ "then": {
672
+ "required": [
673
+ "techRecord_adrDetails_compatibilityGroupJ"
674
+ ]
675
+ }
676
+ },
677
+ {
678
+ "if": {
679
+ "properties": {
680
+ "techRecord_adrDetails_vehicleDetails_type": {
681
+ "enum": [
682
+ "Rigid tank",
683
+ "Rigid battery",
684
+ "Full drawbar tank",
685
+ "Full drawbar battery",
686
+ "Centre axle tank",
687
+ "Centre axle battery",
688
+ "Semi trailer tank",
689
+ "Semi trailer battery"
690
+ ]
691
+ }
692
+ },
693
+ "required": [
694
+ "techRecord_adrDetails_vehicleDetails_type"
695
+ ]
696
+ },
697
+ "then": {
698
+ "required": [
699
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturer",
700
+ "techRecord_adrDetails_tank_tankDetails_yearOfManufacture",
701
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturerSerialNo",
702
+ "techRecord_adrDetails_tank_tankDetails_tankTypeAppNo",
703
+ "techRecord_adrDetails_tank_tankDetails_tankCode",
704
+ "techRecord_adrDetails_tank_tankDetails_tankStatement_substancesPermitted"
705
+ ]
706
+ }
707
+ },
708
+ {
709
+ "if": {
710
+ "properties": {
711
+ "techRecord_adrDetails_listStatementApplicable": {
712
+ "const": true
713
+ }
714
+ },
715
+ "required": [
716
+ "techRecord_adrDetails_listStatementApplicable"
717
+ ]
718
+ },
719
+ "then": {
720
+ "required": [
721
+ "techRecord_adrDetails_batteryListNumber"
722
+ ]
723
+ }
724
+ },
725
+ {
726
+ "if": {
727
+ "properties": {
728
+ "techRecord_adrDetails_brakeEndurance": {
729
+ "const": true
730
+ }
731
+ },
732
+ "required": [
733
+ "techRecord_adrDetails_brakeEndurance"
734
+ ]
735
+ },
736
+ "then": {
737
+ "required": [
738
+ "techRecord_adrDetails_weight"
739
+ ]
740
+ }
741
+ }
742
+ ]
636
743
  }
637
744
  }
@@ -97,6 +97,7 @@
97
97
  "items": {
98
98
  "title": "Additional Examiner Notes",
99
99
  "additionalProperties": false,
100
+ "type": "object",
100
101
  "properties": {
101
102
  "note": {
102
103
  "type": [
@@ -1413,5 +1414,111 @@
1413
1414
  }
1414
1415
  }
1415
1416
  }
1417
+ },
1418
+ "if": {
1419
+ "properties": {
1420
+ "techRecord_adrDetails_dangerousGoods": {
1421
+ "const": true
1422
+ }
1423
+ },
1424
+ "required": [
1425
+ "techRecord_adrDetails_dangerousGoods"
1426
+ ]
1427
+ },
1428
+ "then": {
1429
+ "required": [
1430
+ "techRecord_adrDetails_vehicleDetails_type",
1431
+ "techRecord_adrDetails_vehicleDetails_approvalDate",
1432
+ "techRecord_adrDetails_permittedDangerousGoods",
1433
+ "techRecord_adrDetails_additionalNotes_number"
1434
+ ],
1435
+ "allOf": [
1436
+ {
1437
+ "if": {
1438
+ "properties": {
1439
+ "techRecord_adrDetails_permittedDangerousGoods": {
1440
+ "type": "array",
1441
+ "contains": {
1442
+ "type": "string",
1443
+ "pattern": "^Explosives \\(type \\d\\)$"
1444
+ }
1445
+ }
1446
+ },
1447
+ "required": [
1448
+ "techRecord_adrDetails_permittedDangerousGoods"
1449
+ ]
1450
+ },
1451
+ "then": {
1452
+ "required": [
1453
+ "techRecord_adrDetails_compatibilityGroupJ"
1454
+ ]
1455
+ }
1456
+ },
1457
+ {
1458
+ "if": {
1459
+ "properties": {
1460
+ "techRecord_adrDetails_vehicleDetails_type": {
1461
+ "enum": [
1462
+ "Rigid tank",
1463
+ "Rigid battery",
1464
+ "Full drawbar tank",
1465
+ "Full drawbar battery",
1466
+ "Centre axle tank",
1467
+ "Centre axle battery",
1468
+ "Semi trailer tank",
1469
+ "Semi trailer battery"
1470
+ ]
1471
+ }
1472
+ },
1473
+ "required": [
1474
+ "techRecord_adrDetails_vehicleDetails_type"
1475
+ ]
1476
+ },
1477
+ "then": {
1478
+ "required": [
1479
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturer",
1480
+ "techRecord_adrDetails_tank_tankDetails_yearOfManufacture",
1481
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturerSerialNo",
1482
+ "techRecord_adrDetails_tank_tankDetails_tankTypeAppNo",
1483
+ "techRecord_adrDetails_tank_tankDetails_tankCode",
1484
+ "techRecord_adrDetails_tank_tankDetails_tankStatement_substancesPermitted"
1485
+ ]
1486
+ }
1487
+ },
1488
+ {
1489
+ "if": {
1490
+ "properties": {
1491
+ "techRecord_adrDetails_listStatementApplicable": {
1492
+ "const": true
1493
+ }
1494
+ },
1495
+ "required": [
1496
+ "techRecord_adrDetails_listStatementApplicable"
1497
+ ]
1498
+ },
1499
+ "then": {
1500
+ "required": [
1501
+ "techRecord_adrDetails_batteryListNumber"
1502
+ ]
1503
+ }
1504
+ },
1505
+ {
1506
+ "if": {
1507
+ "properties": {
1508
+ "techRecord_adrDetails_brakeEndurance": {
1509
+ "const": true
1510
+ }
1511
+ },
1512
+ "required": [
1513
+ "techRecord_adrDetails_brakeEndurance"
1514
+ ]
1515
+ },
1516
+ "then": {
1517
+ "required": [
1518
+ "techRecord_adrDetails_weight"
1519
+ ]
1520
+ }
1521
+ }
1522
+ ]
1416
1523
  }
1417
1524
  }
@@ -147,6 +147,7 @@
147
147
  "items": {
148
148
  "title": "Additional Examiner Notes",
149
149
  "additionalProperties": false,
150
+ "type": "object",
150
151
  "properties": {
151
152
  "note": {
152
153
  "type": [
@@ -1476,5 +1477,111 @@
1476
1477
  }
1477
1478
  }
1478
1479
  }
1480
+ },
1481
+ "if": {
1482
+ "properties": {
1483
+ "techRecord_adrDetails_dangerousGoods": {
1484
+ "const": true
1485
+ }
1486
+ },
1487
+ "required": [
1488
+ "techRecord_adrDetails_dangerousGoods"
1489
+ ]
1490
+ },
1491
+ "then": {
1492
+ "required": [
1493
+ "techRecord_adrDetails_vehicleDetails_type",
1494
+ "techRecord_adrDetails_vehicleDetails_approvalDate",
1495
+ "techRecord_adrDetails_permittedDangerousGoods",
1496
+ "techRecord_adrDetails_additionalNotes_number"
1497
+ ],
1498
+ "allOf": [
1499
+ {
1500
+ "if": {
1501
+ "properties": {
1502
+ "techRecord_adrDetails_permittedDangerousGoods": {
1503
+ "type": "array",
1504
+ "contains": {
1505
+ "type": "string",
1506
+ "pattern": "^Explosives \\(type \\d\\)$"
1507
+ }
1508
+ }
1509
+ },
1510
+ "required": [
1511
+ "techRecord_adrDetails_permittedDangerousGoods"
1512
+ ]
1513
+ },
1514
+ "then": {
1515
+ "required": [
1516
+ "techRecord_adrDetails_compatibilityGroupJ"
1517
+ ]
1518
+ }
1519
+ },
1520
+ {
1521
+ "if": {
1522
+ "properties": {
1523
+ "techRecord_adrDetails_vehicleDetails_type": {
1524
+ "enum": [
1525
+ "Rigid tank",
1526
+ "Rigid battery",
1527
+ "Full drawbar tank",
1528
+ "Full drawbar battery",
1529
+ "Centre axle tank",
1530
+ "Centre axle battery",
1531
+ "Semi trailer tank",
1532
+ "Semi trailer battery"
1533
+ ]
1534
+ }
1535
+ },
1536
+ "required": [
1537
+ "techRecord_adrDetails_vehicleDetails_type"
1538
+ ]
1539
+ },
1540
+ "then": {
1541
+ "required": [
1542
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturer",
1543
+ "techRecord_adrDetails_tank_tankDetails_yearOfManufacture",
1544
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturerSerialNo",
1545
+ "techRecord_adrDetails_tank_tankDetails_tankTypeAppNo",
1546
+ "techRecord_adrDetails_tank_tankDetails_tankCode",
1547
+ "techRecord_adrDetails_tank_tankDetails_tankStatement_substancesPermitted"
1548
+ ]
1549
+ }
1550
+ },
1551
+ {
1552
+ "if": {
1553
+ "properties": {
1554
+ "techRecord_adrDetails_listStatementApplicable": {
1555
+ "const": true
1556
+ }
1557
+ },
1558
+ "required": [
1559
+ "techRecord_adrDetails_listStatementApplicable"
1560
+ ]
1561
+ },
1562
+ "then": {
1563
+ "required": [
1564
+ "techRecord_adrDetails_batteryListNumber"
1565
+ ]
1566
+ }
1567
+ },
1568
+ {
1569
+ "if": {
1570
+ "properties": {
1571
+ "techRecord_adrDetails_brakeEndurance": {
1572
+ "const": true
1573
+ }
1574
+ },
1575
+ "required": [
1576
+ "techRecord_adrDetails_brakeEndurance"
1577
+ ]
1578
+ },
1579
+ "then": {
1580
+ "required": [
1581
+ "techRecord_adrDetails_weight"
1582
+ ]
1583
+ }
1584
+ }
1585
+ ]
1479
1586
  }
1480
1587
  }