@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.
@@ -108,6 +108,7 @@
108
108
  "items": {
109
109
  "title": "Additional Examiner Notes",
110
110
  "additionalProperties": false,
111
+ "type": "object",
111
112
  "properties": {
112
113
  "note": {
113
114
  "type": [
@@ -1465,5 +1466,111 @@
1465
1466
  }
1466
1467
  }
1467
1468
  }
1469
+ },
1470
+ "if": {
1471
+ "properties": {
1472
+ "techRecord_adrDetails_dangerousGoods": {
1473
+ "const": true
1474
+ }
1475
+ },
1476
+ "required": [
1477
+ "techRecord_adrDetails_dangerousGoods"
1478
+ ]
1479
+ },
1480
+ "then": {
1481
+ "required": [
1482
+ "techRecord_adrDetails_vehicleDetails_type",
1483
+ "techRecord_adrDetails_vehicleDetails_approvalDate",
1484
+ "techRecord_adrDetails_permittedDangerousGoods",
1485
+ "techRecord_adrDetails_additionalNotes_number"
1486
+ ],
1487
+ "allOf": [
1488
+ {
1489
+ "if": {
1490
+ "properties": {
1491
+ "techRecord_adrDetails_permittedDangerousGoods": {
1492
+ "type": "array",
1493
+ "contains": {
1494
+ "type": "string",
1495
+ "pattern": "^Explosives \\(type \\d\\)$"
1496
+ }
1497
+ }
1498
+ },
1499
+ "required": [
1500
+ "techRecord_adrDetails_permittedDangerousGoods"
1501
+ ]
1502
+ },
1503
+ "then": {
1504
+ "required": [
1505
+ "techRecord_adrDetails_compatibilityGroupJ"
1506
+ ]
1507
+ }
1508
+ },
1509
+ {
1510
+ "if": {
1511
+ "properties": {
1512
+ "techRecord_adrDetails_vehicleDetails_type": {
1513
+ "enum": [
1514
+ "Rigid tank",
1515
+ "Rigid battery",
1516
+ "Full drawbar tank",
1517
+ "Full drawbar battery",
1518
+ "Centre axle tank",
1519
+ "Centre axle battery",
1520
+ "Semi trailer tank",
1521
+ "Semi trailer battery"
1522
+ ]
1523
+ }
1524
+ },
1525
+ "required": [
1526
+ "techRecord_adrDetails_vehicleDetails_type"
1527
+ ]
1528
+ },
1529
+ "then": {
1530
+ "required": [
1531
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturer",
1532
+ "techRecord_adrDetails_tank_tankDetails_yearOfManufacture",
1533
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturerSerialNo",
1534
+ "techRecord_adrDetails_tank_tankDetails_tankTypeAppNo",
1535
+ "techRecord_adrDetails_tank_tankDetails_tankCode",
1536
+ "techRecord_adrDetails_tank_tankDetails_tankStatement_substancesPermitted"
1537
+ ]
1538
+ }
1539
+ },
1540
+ {
1541
+ "if": {
1542
+ "properties": {
1543
+ "techRecord_adrDetails_listStatementApplicable": {
1544
+ "const": true
1545
+ }
1546
+ },
1547
+ "required": [
1548
+ "techRecord_adrDetails_listStatementApplicable"
1549
+ ]
1550
+ },
1551
+ "then": {
1552
+ "required": [
1553
+ "techRecord_adrDetails_batteryListNumber"
1554
+ ]
1555
+ }
1556
+ },
1557
+ {
1558
+ "if": {
1559
+ "properties": {
1560
+ "techRecord_adrDetails_brakeEndurance": {
1561
+ "const": true
1562
+ }
1563
+ },
1564
+ "required": [
1565
+ "techRecord_adrDetails_brakeEndurance"
1566
+ ]
1567
+ },
1568
+ "then": {
1569
+ "required": [
1570
+ "techRecord_adrDetails_weight"
1571
+ ]
1572
+ }
1573
+ }
1574
+ ]
1468
1575
  }
1469
1576
  }
@@ -88,6 +88,7 @@
88
88
  "items": {
89
89
  "title": "Additional Examiner Notes",
90
90
  "additionalProperties": false,
91
+ "type": "object",
91
92
  "properties": {
92
93
  "note": {
93
94
  "type": [
@@ -1540,5 +1541,111 @@
1540
1541
  }
1541
1542
  }
1542
1543
  }
1544
+ },
1545
+ "if": {
1546
+ "properties": {
1547
+ "techRecord_adrDetails_dangerousGoods": {
1548
+ "const": true
1549
+ }
1550
+ },
1551
+ "required": [
1552
+ "techRecord_adrDetails_dangerousGoods"
1553
+ ]
1554
+ },
1555
+ "then": {
1556
+ "required": [
1557
+ "techRecord_adrDetails_vehicleDetails_type",
1558
+ "techRecord_adrDetails_vehicleDetails_approvalDate",
1559
+ "techRecord_adrDetails_permittedDangerousGoods",
1560
+ "techRecord_adrDetails_additionalNotes_number"
1561
+ ],
1562
+ "allOf": [
1563
+ {
1564
+ "if": {
1565
+ "properties": {
1566
+ "techRecord_adrDetails_permittedDangerousGoods": {
1567
+ "type": "array",
1568
+ "contains": {
1569
+ "type": "string",
1570
+ "pattern": "^Explosives \\(type \\d\\)$"
1571
+ }
1572
+ }
1573
+ },
1574
+ "required": [
1575
+ "techRecord_adrDetails_permittedDangerousGoods"
1576
+ ]
1577
+ },
1578
+ "then": {
1579
+ "required": [
1580
+ "techRecord_adrDetails_compatibilityGroupJ"
1581
+ ]
1582
+ }
1583
+ },
1584
+ {
1585
+ "if": {
1586
+ "properties": {
1587
+ "techRecord_adrDetails_vehicleDetails_type": {
1588
+ "enum": [
1589
+ "Rigid tank",
1590
+ "Rigid battery",
1591
+ "Full drawbar tank",
1592
+ "Full drawbar battery",
1593
+ "Centre axle tank",
1594
+ "Centre axle battery",
1595
+ "Semi trailer tank",
1596
+ "Semi trailer battery"
1597
+ ]
1598
+ }
1599
+ },
1600
+ "required": [
1601
+ "techRecord_adrDetails_vehicleDetails_type"
1602
+ ]
1603
+ },
1604
+ "then": {
1605
+ "required": [
1606
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturer",
1607
+ "techRecord_adrDetails_tank_tankDetails_yearOfManufacture",
1608
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturerSerialNo",
1609
+ "techRecord_adrDetails_tank_tankDetails_tankTypeAppNo",
1610
+ "techRecord_adrDetails_tank_tankDetails_tankCode",
1611
+ "techRecord_adrDetails_tank_tankDetails_tankStatement_substancesPermitted"
1612
+ ]
1613
+ }
1614
+ },
1615
+ {
1616
+ "if": {
1617
+ "properties": {
1618
+ "techRecord_adrDetails_listStatementApplicable": {
1619
+ "const": true
1620
+ }
1621
+ },
1622
+ "required": [
1623
+ "techRecord_adrDetails_listStatementApplicable"
1624
+ ]
1625
+ },
1626
+ "then": {
1627
+ "required": [
1628
+ "techRecord_adrDetails_batteryListNumber"
1629
+ ]
1630
+ }
1631
+ },
1632
+ {
1633
+ "if": {
1634
+ "properties": {
1635
+ "techRecord_adrDetails_brakeEndurance": {
1636
+ "const": true
1637
+ }
1638
+ },
1639
+ "required": [
1640
+ "techRecord_adrDetails_brakeEndurance"
1641
+ ]
1642
+ },
1643
+ "then": {
1644
+ "required": [
1645
+ "techRecord_adrDetails_weight"
1646
+ ]
1647
+ }
1648
+ }
1649
+ ]
1543
1650
  }
1544
1651
  }
@@ -90,6 +90,7 @@
90
90
  "items": {
91
91
  "title": "Additional Examiner Notes",
92
92
  "additionalProperties": false,
93
+ "type": "object",
93
94
  "properties": {
94
95
  "note": {
95
96
  "type": [
@@ -1530,5 +1531,111 @@
1530
1531
  }
1531
1532
  }
1532
1533
  }
1534
+ },
1535
+ "if": {
1536
+ "properties": {
1537
+ "techRecord_adrDetails_dangerousGoods": {
1538
+ "const": true
1539
+ }
1540
+ },
1541
+ "required": [
1542
+ "techRecord_adrDetails_dangerousGoods"
1543
+ ]
1544
+ },
1545
+ "then": {
1546
+ "required": [
1547
+ "techRecord_adrDetails_vehicleDetails_type",
1548
+ "techRecord_adrDetails_vehicleDetails_approvalDate",
1549
+ "techRecord_adrDetails_permittedDangerousGoods",
1550
+ "techRecord_adrDetails_additionalNotes_number"
1551
+ ],
1552
+ "allOf": [
1553
+ {
1554
+ "if": {
1555
+ "properties": {
1556
+ "techRecord_adrDetails_permittedDangerousGoods": {
1557
+ "type": "array",
1558
+ "contains": {
1559
+ "type": "string",
1560
+ "pattern": "^Explosives \\(type \\d\\)$"
1561
+ }
1562
+ }
1563
+ },
1564
+ "required": [
1565
+ "techRecord_adrDetails_permittedDangerousGoods"
1566
+ ]
1567
+ },
1568
+ "then": {
1569
+ "required": [
1570
+ "techRecord_adrDetails_compatibilityGroupJ"
1571
+ ]
1572
+ }
1573
+ },
1574
+ {
1575
+ "if": {
1576
+ "properties": {
1577
+ "techRecord_adrDetails_vehicleDetails_type": {
1578
+ "enum": [
1579
+ "Rigid tank",
1580
+ "Rigid battery",
1581
+ "Full drawbar tank",
1582
+ "Full drawbar battery",
1583
+ "Centre axle tank",
1584
+ "Centre axle battery",
1585
+ "Semi trailer tank",
1586
+ "Semi trailer battery"
1587
+ ]
1588
+ }
1589
+ },
1590
+ "required": [
1591
+ "techRecord_adrDetails_vehicleDetails_type"
1592
+ ]
1593
+ },
1594
+ "then": {
1595
+ "required": [
1596
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturer",
1597
+ "techRecord_adrDetails_tank_tankDetails_yearOfManufacture",
1598
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturerSerialNo",
1599
+ "techRecord_adrDetails_tank_tankDetails_tankTypeAppNo",
1600
+ "techRecord_adrDetails_tank_tankDetails_tankCode",
1601
+ "techRecord_adrDetails_tank_tankDetails_tankStatement_substancesPermitted"
1602
+ ]
1603
+ }
1604
+ },
1605
+ {
1606
+ "if": {
1607
+ "properties": {
1608
+ "techRecord_adrDetails_listStatementApplicable": {
1609
+ "const": true
1610
+ }
1611
+ },
1612
+ "required": [
1613
+ "techRecord_adrDetails_listStatementApplicable"
1614
+ ]
1615
+ },
1616
+ "then": {
1617
+ "required": [
1618
+ "techRecord_adrDetails_batteryListNumber"
1619
+ ]
1620
+ }
1621
+ },
1622
+ {
1623
+ "if": {
1624
+ "properties": {
1625
+ "techRecord_adrDetails_brakeEndurance": {
1626
+ "const": true
1627
+ }
1628
+ },
1629
+ "required": [
1630
+ "techRecord_adrDetails_brakeEndurance"
1631
+ ]
1632
+ },
1633
+ "then": {
1634
+ "required": [
1635
+ "techRecord_adrDetails_weight"
1636
+ ]
1637
+ }
1638
+ }
1639
+ ]
1533
1640
  }
1534
1641
  }
@@ -114,6 +114,7 @@
114
114
  "items": {
115
115
  "title": "Additional Examiner Notes",
116
116
  "additionalProperties": false,
117
+ "type": "object",
117
118
  "properties": {
118
119
  "note": {
119
120
  "type": [
@@ -1120,5 +1121,111 @@
1120
1121
  "string"
1121
1122
  ]
1122
1123
  }
1124
+ },
1125
+ "if": {
1126
+ "properties": {
1127
+ "techRecord_adrDetails_dangerousGoods": {
1128
+ "const": true
1129
+ }
1130
+ },
1131
+ "required": [
1132
+ "techRecord_adrDetails_dangerousGoods"
1133
+ ]
1134
+ },
1135
+ "then": {
1136
+ "required": [
1137
+ "techRecord_adrDetails_vehicleDetails_type",
1138
+ "techRecord_adrDetails_vehicleDetails_approvalDate",
1139
+ "techRecord_adrDetails_permittedDangerousGoods",
1140
+ "techRecord_adrDetails_additionalNotes_number"
1141
+ ],
1142
+ "allOf": [
1143
+ {
1144
+ "if": {
1145
+ "properties": {
1146
+ "techRecord_adrDetails_permittedDangerousGoods": {
1147
+ "type": "array",
1148
+ "contains": {
1149
+ "type": "string",
1150
+ "pattern": "^Explosives \\(type \\d\\)$"
1151
+ }
1152
+ }
1153
+ },
1154
+ "required": [
1155
+ "techRecord_adrDetails_permittedDangerousGoods"
1156
+ ]
1157
+ },
1158
+ "then": {
1159
+ "required": [
1160
+ "techRecord_adrDetails_compatibilityGroupJ"
1161
+ ]
1162
+ }
1163
+ },
1164
+ {
1165
+ "if": {
1166
+ "properties": {
1167
+ "techRecord_adrDetails_vehicleDetails_type": {
1168
+ "enum": [
1169
+ "Rigid tank",
1170
+ "Rigid battery",
1171
+ "Full drawbar tank",
1172
+ "Full drawbar battery",
1173
+ "Centre axle tank",
1174
+ "Centre axle battery",
1175
+ "Semi trailer tank",
1176
+ "Semi trailer battery"
1177
+ ]
1178
+ }
1179
+ },
1180
+ "required": [
1181
+ "techRecord_adrDetails_vehicleDetails_type"
1182
+ ]
1183
+ },
1184
+ "then": {
1185
+ "required": [
1186
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturer",
1187
+ "techRecord_adrDetails_tank_tankDetails_yearOfManufacture",
1188
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturerSerialNo",
1189
+ "techRecord_adrDetails_tank_tankDetails_tankTypeAppNo",
1190
+ "techRecord_adrDetails_tank_tankDetails_tankCode",
1191
+ "techRecord_adrDetails_tank_tankDetails_tankStatement_substancesPermitted"
1192
+ ]
1193
+ }
1194
+ },
1195
+ {
1196
+ "if": {
1197
+ "properties": {
1198
+ "techRecord_adrDetails_listStatementApplicable": {
1199
+ "const": true
1200
+ }
1201
+ },
1202
+ "required": [
1203
+ "techRecord_adrDetails_listStatementApplicable"
1204
+ ]
1205
+ },
1206
+ "then": {
1207
+ "required": [
1208
+ "techRecord_adrDetails_batteryListNumber"
1209
+ ]
1210
+ }
1211
+ },
1212
+ {
1213
+ "if": {
1214
+ "properties": {
1215
+ "techRecord_adrDetails_brakeEndurance": {
1216
+ "const": true
1217
+ }
1218
+ },
1219
+ "required": [
1220
+ "techRecord_adrDetails_brakeEndurance"
1221
+ ]
1222
+ },
1223
+ "then": {
1224
+ "required": [
1225
+ "techRecord_adrDetails_weight"
1226
+ ]
1227
+ }
1228
+ }
1229
+ ]
1123
1230
  }
1124
1231
  }
@@ -82,6 +82,7 @@
82
82
  "items": {
83
83
  "title": "Additional Examiner Notes",
84
84
  "additionalProperties": false,
85
+ "type": "object",
85
86
  "properties": {
86
87
  "note": {
87
88
  "type": [
@@ -1199,5 +1200,111 @@
1199
1200
  "string"
1200
1201
  ]
1201
1202
  }
1203
+ },
1204
+ "if": {
1205
+ "properties": {
1206
+ "techRecord_adrDetails_dangerousGoods": {
1207
+ "const": true
1208
+ }
1209
+ },
1210
+ "required": [
1211
+ "techRecord_adrDetails_dangerousGoods"
1212
+ ]
1213
+ },
1214
+ "then": {
1215
+ "required": [
1216
+ "techRecord_adrDetails_vehicleDetails_type",
1217
+ "techRecord_adrDetails_vehicleDetails_approvalDate",
1218
+ "techRecord_adrDetails_permittedDangerousGoods",
1219
+ "techRecord_adrDetails_additionalNotes_number"
1220
+ ],
1221
+ "allOf": [
1222
+ {
1223
+ "if": {
1224
+ "properties": {
1225
+ "techRecord_adrDetails_permittedDangerousGoods": {
1226
+ "type": "array",
1227
+ "contains": {
1228
+ "type": "string",
1229
+ "pattern": "^Explosives \\(type \\d\\)$"
1230
+ }
1231
+ }
1232
+ },
1233
+ "required": [
1234
+ "techRecord_adrDetails_permittedDangerousGoods"
1235
+ ]
1236
+ },
1237
+ "then": {
1238
+ "required": [
1239
+ "techRecord_adrDetails_compatibilityGroupJ"
1240
+ ]
1241
+ }
1242
+ },
1243
+ {
1244
+ "if": {
1245
+ "properties": {
1246
+ "techRecord_adrDetails_vehicleDetails_type": {
1247
+ "enum": [
1248
+ "Rigid tank",
1249
+ "Rigid battery",
1250
+ "Full drawbar tank",
1251
+ "Full drawbar battery",
1252
+ "Centre axle tank",
1253
+ "Centre axle battery",
1254
+ "Semi trailer tank",
1255
+ "Semi trailer battery"
1256
+ ]
1257
+ }
1258
+ },
1259
+ "required": [
1260
+ "techRecord_adrDetails_vehicleDetails_type"
1261
+ ]
1262
+ },
1263
+ "then": {
1264
+ "required": [
1265
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturer",
1266
+ "techRecord_adrDetails_tank_tankDetails_yearOfManufacture",
1267
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturerSerialNo",
1268
+ "techRecord_adrDetails_tank_tankDetails_tankTypeAppNo",
1269
+ "techRecord_adrDetails_tank_tankDetails_tankCode",
1270
+ "techRecord_adrDetails_tank_tankDetails_tankStatement_substancesPermitted"
1271
+ ]
1272
+ }
1273
+ },
1274
+ {
1275
+ "if": {
1276
+ "properties": {
1277
+ "techRecord_adrDetails_listStatementApplicable": {
1278
+ "const": true
1279
+ }
1280
+ },
1281
+ "required": [
1282
+ "techRecord_adrDetails_listStatementApplicable"
1283
+ ]
1284
+ },
1285
+ "then": {
1286
+ "required": [
1287
+ "techRecord_adrDetails_batteryListNumber"
1288
+ ]
1289
+ }
1290
+ },
1291
+ {
1292
+ "if": {
1293
+ "properties": {
1294
+ "techRecord_adrDetails_brakeEndurance": {
1295
+ "const": true
1296
+ }
1297
+ },
1298
+ "required": [
1299
+ "techRecord_adrDetails_brakeEndurance"
1300
+ ]
1301
+ },
1302
+ "then": {
1303
+ "required": [
1304
+ "techRecord_adrDetails_weight"
1305
+ ]
1306
+ }
1307
+ }
1308
+ ]
1202
1309
  }
1203
1310
  }