@dvsa/cvs-type-definitions 7.5.0 → 7.5.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.
@@ -1300,12 +1300,7 @@
1300
1300
  "techRecord_adrDetails_permittedDangerousGoods": {
1301
1301
  "type": "array",
1302
1302
  "contains": {
1303
- "type": "string",
1304
- "not": {
1305
- "enum": [
1306
- "Explosives (type 3)"
1307
- ]
1308
- }
1303
+ "const": "Explosives (type 3)"
1309
1304
  }
1310
1305
  }
1311
1306
  },
@@ -1313,11 +1308,34 @@
1313
1308
  "techRecord_adrDetails_permittedDangerousGoods"
1314
1309
  ]
1315
1310
  },
1316
- "then": {
1317
- "not": {
1311
+ "else": {
1312
+ "if": {
1313
+ "properties": {
1314
+ "techRecord_adrDetails_permittedDangerousGoods": {
1315
+ "type": "array",
1316
+ "contains": {
1317
+ "enum": [
1318
+ "FP <61 (FL)",
1319
+ "AT",
1320
+ "Class 5.1 Hydrogen Peroxide (OX)",
1321
+ "MEMU",
1322
+ "Carbon Disulphide",
1323
+ "Hydrogen",
1324
+ "Explosives (type 2)"
1325
+ ]
1326
+ }
1327
+ }
1328
+ },
1318
1329
  "required": [
1319
- "techRecord_adrDetails_bodyDeclaration_type"
1330
+ "techRecord_adrDetails_permittedDangerousGoods"
1320
1331
  ]
1332
+ },
1333
+ "then": {
1334
+ "not": {
1335
+ "required": [
1336
+ "techRecord_adrDetails_bodyDeclaration_type"
1337
+ ]
1338
+ }
1321
1339
  }
1322
1340
  }
1323
1341
  },
@@ -1381,12 +1381,7 @@
1381
1381
  "techRecord_adrDetails_permittedDangerousGoods": {
1382
1382
  "type": "array",
1383
1383
  "contains": {
1384
- "type": "string",
1385
- "not": {
1386
- "enum": [
1387
- "Explosives (type 3)"
1388
- ]
1389
- }
1384
+ "const": "Explosives (type 3)"
1390
1385
  }
1391
1386
  }
1392
1387
  },
@@ -1394,11 +1389,34 @@
1394
1389
  "techRecord_adrDetails_permittedDangerousGoods"
1395
1390
  ]
1396
1391
  },
1397
- "then": {
1398
- "not": {
1392
+ "else": {
1393
+ "if": {
1394
+ "properties": {
1395
+ "techRecord_adrDetails_permittedDangerousGoods": {
1396
+ "type": "array",
1397
+ "contains": {
1398
+ "enum": [
1399
+ "FP <61 (FL)",
1400
+ "AT",
1401
+ "Class 5.1 Hydrogen Peroxide (OX)",
1402
+ "MEMU",
1403
+ "Carbon Disulphide",
1404
+ "Hydrogen",
1405
+ "Explosives (type 2)"
1406
+ ]
1407
+ }
1408
+ }
1409
+ },
1399
1410
  "required": [
1400
- "techRecord_adrDetails_bodyDeclaration_type"
1411
+ "techRecord_adrDetails_permittedDangerousGoods"
1401
1412
  ]
1413
+ },
1414
+ "then": {
1415
+ "not": {
1416
+ "required": [
1417
+ "techRecord_adrDetails_bodyDeclaration_type"
1418
+ ]
1419
+ }
1402
1420
  }
1403
1421
  }
1404
1422
  },
@@ -1372,12 +1372,7 @@
1372
1372
  "techRecord_adrDetails_permittedDangerousGoods": {
1373
1373
  "type": "array",
1374
1374
  "contains": {
1375
- "type": "string",
1376
- "not": {
1377
- "enum": [
1378
- "Explosives (type 3)"
1379
- ]
1380
- }
1375
+ "const": "Explosives (type 3)"
1381
1376
  }
1382
1377
  }
1383
1378
  },
@@ -1385,11 +1380,34 @@
1385
1380
  "techRecord_adrDetails_permittedDangerousGoods"
1386
1381
  ]
1387
1382
  },
1388
- "then": {
1389
- "not": {
1383
+ "else": {
1384
+ "if": {
1385
+ "properties": {
1386
+ "techRecord_adrDetails_permittedDangerousGoods": {
1387
+ "type": "array",
1388
+ "contains": {
1389
+ "enum": [
1390
+ "FP <61 (FL)",
1391
+ "AT",
1392
+ "Class 5.1 Hydrogen Peroxide (OX)",
1393
+ "MEMU",
1394
+ "Carbon Disulphide",
1395
+ "Hydrogen",
1396
+ "Explosives (type 2)"
1397
+ ]
1398
+ }
1399
+ }
1400
+ },
1390
1401
  "required": [
1391
- "techRecord_adrDetails_bodyDeclaration_type"
1402
+ "techRecord_adrDetails_permittedDangerousGoods"
1392
1403
  ]
1404
+ },
1405
+ "then": {
1406
+ "not": {
1407
+ "required": [
1408
+ "techRecord_adrDetails_bodyDeclaration_type"
1409
+ ]
1410
+ }
1393
1411
  }
1394
1412
  }
1395
1413
  },
@@ -827,12 +827,7 @@
827
827
  "techRecord_adrDetails_permittedDangerousGoods": {
828
828
  "type": "array",
829
829
  "contains": {
830
- "type": "string",
831
- "not": {
832
- "enum": [
833
- "Explosives (type 3)"
834
- ]
835
- }
830
+ "const": "Explosives (type 3)"
836
831
  }
837
832
  }
838
833
  },
@@ -840,11 +835,34 @@
840
835
  "techRecord_adrDetails_permittedDangerousGoods"
841
836
  ]
842
837
  },
843
- "then": {
844
- "not": {
838
+ "else": {
839
+ "if": {
840
+ "properties": {
841
+ "techRecord_adrDetails_permittedDangerousGoods": {
842
+ "type": "array",
843
+ "contains": {
844
+ "enum": [
845
+ "FP <61 (FL)",
846
+ "AT",
847
+ "Class 5.1 Hydrogen Peroxide (OX)",
848
+ "MEMU",
849
+ "Carbon Disulphide",
850
+ "Hydrogen",
851
+ "Explosives (type 2)"
852
+ ]
853
+ }
854
+ }
855
+ },
845
856
  "required": [
846
- "techRecord_adrDetails_bodyDeclaration_type"
857
+ "techRecord_adrDetails_permittedDangerousGoods"
847
858
  ]
859
+ },
860
+ "then": {
861
+ "not": {
862
+ "required": [
863
+ "techRecord_adrDetails_bodyDeclaration_type"
864
+ ]
865
+ }
848
866
  }
849
867
  }
850
868
  },
@@ -834,12 +834,7 @@
834
834
  "techRecord_adrDetails_permittedDangerousGoods": {
835
835
  "type": "array",
836
836
  "contains": {
837
- "type": "string",
838
- "not": {
839
- "enum": [
840
- "Explosives (type 3)"
841
- ]
842
- }
837
+ "const": "Explosives (type 3)"
843
838
  }
844
839
  }
845
840
  },
@@ -847,11 +842,34 @@
847
842
  "techRecord_adrDetails_permittedDangerousGoods"
848
843
  ]
849
844
  },
850
- "then": {
851
- "not": {
845
+ "else": {
846
+ "if": {
847
+ "properties": {
848
+ "techRecord_adrDetails_permittedDangerousGoods": {
849
+ "type": "array",
850
+ "contains": {
851
+ "enum": [
852
+ "FP <61 (FL)",
853
+ "AT",
854
+ "Class 5.1 Hydrogen Peroxide (OX)",
855
+ "MEMU",
856
+ "Carbon Disulphide",
857
+ "Hydrogen",
858
+ "Explosives (type 2)"
859
+ ]
860
+ }
861
+ }
862
+ },
852
863
  "required": [
853
- "techRecord_adrDetails_bodyDeclaration_type"
864
+ "techRecord_adrDetails_permittedDangerousGoods"
854
865
  ]
866
+ },
867
+ "then": {
868
+ "not": {
869
+ "required": [
870
+ "techRecord_adrDetails_bodyDeclaration_type"
871
+ ]
872
+ }
855
873
  }
856
874
  }
857
875
  },
@@ -1594,12 +1594,7 @@
1594
1594
  "techRecord_adrDetails_permittedDangerousGoods": {
1595
1595
  "type": "array",
1596
1596
  "contains": {
1597
- "type": "string",
1598
- "not": {
1599
- "enum": [
1600
- "Explosives (type 3)"
1601
- ]
1602
- }
1597
+ "const": "Explosives (type 3)"
1603
1598
  }
1604
1599
  }
1605
1600
  },
@@ -1607,11 +1602,34 @@
1607
1602
  "techRecord_adrDetails_permittedDangerousGoods"
1608
1603
  ]
1609
1604
  },
1610
- "then": {
1611
- "not": {
1605
+ "else": {
1606
+ "if": {
1607
+ "properties": {
1608
+ "techRecord_adrDetails_permittedDangerousGoods": {
1609
+ "type": "array",
1610
+ "contains": {
1611
+ "enum": [
1612
+ "FP <61 (FL)",
1613
+ "AT",
1614
+ "Class 5.1 Hydrogen Peroxide (OX)",
1615
+ "MEMU",
1616
+ "Carbon Disulphide",
1617
+ "Hydrogen",
1618
+ "Explosives (type 2)"
1619
+ ]
1620
+ }
1621
+ }
1622
+ },
1612
1623
  "required": [
1613
- "techRecord_adrDetails_bodyDeclaration_type"
1624
+ "techRecord_adrDetails_permittedDangerousGoods"
1614
1625
  ]
1626
+ },
1627
+ "then": {
1628
+ "not": {
1629
+ "required": [
1630
+ "techRecord_adrDetails_bodyDeclaration_type"
1631
+ ]
1632
+ }
1615
1633
  }
1616
1634
  }
1617
1635
  },
@@ -1669,12 +1669,7 @@
1669
1669
  "techRecord_adrDetails_permittedDangerousGoods": {
1670
1670
  "type": "array",
1671
1671
  "contains": {
1672
- "type": "string",
1673
- "not": {
1674
- "enum": [
1675
- "Explosives (type 3)"
1676
- ]
1677
- }
1672
+ "const": "Explosives (type 3)"
1678
1673
  }
1679
1674
  }
1680
1675
  },
@@ -1682,11 +1677,34 @@
1682
1677
  "techRecord_adrDetails_permittedDangerousGoods"
1683
1678
  ]
1684
1679
  },
1685
- "then": {
1686
- "not": {
1680
+ "else": {
1681
+ "if": {
1682
+ "properties": {
1683
+ "techRecord_adrDetails_permittedDangerousGoods": {
1684
+ "type": "array",
1685
+ "contains": {
1686
+ "enum": [
1687
+ "FP <61 (FL)",
1688
+ "AT",
1689
+ "Class 5.1 Hydrogen Peroxide (OX)",
1690
+ "MEMU",
1691
+ "Carbon Disulphide",
1692
+ "Hydrogen",
1693
+ "Explosives (type 2)"
1694
+ ]
1695
+ }
1696
+ }
1697
+ },
1687
1698
  "required": [
1688
- "techRecord_adrDetails_bodyDeclaration_type"
1699
+ "techRecord_adrDetails_permittedDangerousGoods"
1689
1700
  ]
1701
+ },
1702
+ "then": {
1703
+ "not": {
1704
+ "required": [
1705
+ "techRecord_adrDetails_bodyDeclaration_type"
1706
+ ]
1707
+ }
1690
1708
  }
1691
1709
  }
1692
1710
  },
@@ -1659,12 +1659,7 @@
1659
1659
  "techRecord_adrDetails_permittedDangerousGoods": {
1660
1660
  "type": "array",
1661
1661
  "contains": {
1662
- "type": "string",
1663
- "not": {
1664
- "enum": [
1665
- "Explosives (type 3)"
1666
- ]
1667
- }
1662
+ "const": "Explosives (type 3)"
1668
1663
  }
1669
1664
  }
1670
1665
  },
@@ -1672,11 +1667,34 @@
1672
1667
  "techRecord_adrDetails_permittedDangerousGoods"
1673
1668
  ]
1674
1669
  },
1675
- "then": {
1676
- "not": {
1670
+ "else": {
1671
+ "if": {
1672
+ "properties": {
1673
+ "techRecord_adrDetails_permittedDangerousGoods": {
1674
+ "type": "array",
1675
+ "contains": {
1676
+ "enum": [
1677
+ "FP <61 (FL)",
1678
+ "AT",
1679
+ "Class 5.1 Hydrogen Peroxide (OX)",
1680
+ "MEMU",
1681
+ "Carbon Disulphide",
1682
+ "Hydrogen",
1683
+ "Explosives (type 2)"
1684
+ ]
1685
+ }
1686
+ }
1687
+ },
1677
1688
  "required": [
1678
- "techRecord_adrDetails_bodyDeclaration_type"
1689
+ "techRecord_adrDetails_permittedDangerousGoods"
1679
1690
  ]
1691
+ },
1692
+ "then": {
1693
+ "not": {
1694
+ "required": [
1695
+ "techRecord_adrDetails_bodyDeclaration_type"
1696
+ ]
1697
+ }
1680
1698
  }
1681
1699
  }
1682
1700
  },
@@ -1249,12 +1249,7 @@
1249
1249
  "techRecord_adrDetails_permittedDangerousGoods": {
1250
1250
  "type": "array",
1251
1251
  "contains": {
1252
- "type": "string",
1253
- "not": {
1254
- "enum": [
1255
- "Explosives (type 3)"
1256
- ]
1257
- }
1252
+ "const": "Explosives (type 3)"
1258
1253
  }
1259
1254
  }
1260
1255
  },
@@ -1262,11 +1257,34 @@
1262
1257
  "techRecord_adrDetails_permittedDangerousGoods"
1263
1258
  ]
1264
1259
  },
1265
- "then": {
1266
- "not": {
1260
+ "else": {
1261
+ "if": {
1262
+ "properties": {
1263
+ "techRecord_adrDetails_permittedDangerousGoods": {
1264
+ "type": "array",
1265
+ "contains": {
1266
+ "enum": [
1267
+ "FP <61 (FL)",
1268
+ "AT",
1269
+ "Class 5.1 Hydrogen Peroxide (OX)",
1270
+ "MEMU",
1271
+ "Carbon Disulphide",
1272
+ "Hydrogen",
1273
+ "Explosives (type 2)"
1274
+ ]
1275
+ }
1276
+ }
1277
+ },
1267
1278
  "required": [
1268
- "techRecord_adrDetails_bodyDeclaration_type"
1279
+ "techRecord_adrDetails_permittedDangerousGoods"
1269
1280
  ]
1281
+ },
1282
+ "then": {
1283
+ "not": {
1284
+ "required": [
1285
+ "techRecord_adrDetails_bodyDeclaration_type"
1286
+ ]
1287
+ }
1270
1288
  }
1271
1289
  }
1272
1290
  },
@@ -1328,12 +1328,7 @@
1328
1328
  "techRecord_adrDetails_permittedDangerousGoods": {
1329
1329
  "type": "array",
1330
1330
  "contains": {
1331
- "type": "string",
1332
- "not": {
1333
- "enum": [
1334
- "Explosives (type 3)"
1335
- ]
1336
- }
1331
+ "const": "Explosives (type 3)"
1337
1332
  }
1338
1333
  }
1339
1334
  },
@@ -1341,11 +1336,34 @@
1341
1336
  "techRecord_adrDetails_permittedDangerousGoods"
1342
1337
  ]
1343
1338
  },
1344
- "then": {
1345
- "not": {
1339
+ "else": {
1340
+ "if": {
1341
+ "properties": {
1342
+ "techRecord_adrDetails_permittedDangerousGoods": {
1343
+ "type": "array",
1344
+ "contains": {
1345
+ "enum": [
1346
+ "FP <61 (FL)",
1347
+ "AT",
1348
+ "Class 5.1 Hydrogen Peroxide (OX)",
1349
+ "MEMU",
1350
+ "Carbon Disulphide",
1351
+ "Hydrogen",
1352
+ "Explosives (type 2)"
1353
+ ]
1354
+ }
1355
+ }
1356
+ },
1346
1357
  "required": [
1347
- "techRecord_adrDetails_bodyDeclaration_type"
1358
+ "techRecord_adrDetails_permittedDangerousGoods"
1348
1359
  ]
1360
+ },
1361
+ "then": {
1362
+ "not": {
1363
+ "required": [
1364
+ "techRecord_adrDetails_bodyDeclaration_type"
1365
+ ]
1366
+ }
1349
1367
  }
1350
1368
  }
1351
1369
  },
@@ -1311,12 +1311,7 @@
1311
1311
  "techRecord_adrDetails_permittedDangerousGoods": {
1312
1312
  "type": "array",
1313
1313
  "contains": {
1314
- "type": "string",
1315
- "not": {
1316
- "enum": [
1317
- "Explosives (type 3)"
1318
- ]
1319
- }
1314
+ "const": "Explosives (type 3)"
1320
1315
  }
1321
1316
  }
1322
1317
  },
@@ -1324,11 +1319,34 @@
1324
1319
  "techRecord_adrDetails_permittedDangerousGoods"
1325
1320
  ]
1326
1321
  },
1327
- "then": {
1328
- "not": {
1322
+ "else": {
1323
+ "if": {
1324
+ "properties": {
1325
+ "techRecord_adrDetails_permittedDangerousGoods": {
1326
+ "type": "array",
1327
+ "contains": {
1328
+ "enum": [
1329
+ "FP <61 (FL)",
1330
+ "AT",
1331
+ "Class 5.1 Hydrogen Peroxide (OX)",
1332
+ "MEMU",
1333
+ "Carbon Disulphide",
1334
+ "Hydrogen",
1335
+ "Explosives (type 2)"
1336
+ ]
1337
+ }
1338
+ }
1339
+ },
1329
1340
  "required": [
1330
- "techRecord_adrDetails_bodyDeclaration_type"
1341
+ "techRecord_adrDetails_permittedDangerousGoods"
1331
1342
  ]
1343
+ },
1344
+ "then": {
1345
+ "not": {
1346
+ "required": [
1347
+ "techRecord_adrDetails_bodyDeclaration_type"
1348
+ ]
1349
+ }
1332
1350
  }
1333
1351
  }
1334
1352
  },
@@ -758,12 +758,7 @@
758
758
  "techRecord_adrDetails_permittedDangerousGoods": {
759
759
  "type": "array",
760
760
  "contains": {
761
- "type": "string",
762
- "not": {
763
- "enum": [
764
- "Explosives (type 3)"
765
- ]
766
- }
761
+ "const": "Explosives (type 3)"
767
762
  }
768
763
  }
769
764
  },
@@ -771,11 +766,34 @@
771
766
  "techRecord_adrDetails_permittedDangerousGoods"
772
767
  ]
773
768
  },
774
- "then": {
775
- "not": {
769
+ "else": {
770
+ "if": {
771
+ "properties": {
772
+ "techRecord_adrDetails_permittedDangerousGoods": {
773
+ "type": "array",
774
+ "contains": {
775
+ "enum": [
776
+ "FP <61 (FL)",
777
+ "AT",
778
+ "Class 5.1 Hydrogen Peroxide (OX)",
779
+ "MEMU",
780
+ "Carbon Disulphide",
781
+ "Hydrogen",
782
+ "Explosives (type 2)"
783
+ ]
784
+ }
785
+ }
786
+ },
776
787
  "required": [
777
- "techRecord_adrDetails_bodyDeclaration_type"
788
+ "techRecord_adrDetails_permittedDangerousGoods"
778
789
  ]
790
+ },
791
+ "then": {
792
+ "not": {
793
+ "required": [
794
+ "techRecord_adrDetails_bodyDeclaration_type"
795
+ ]
796
+ }
779
797
  }
780
798
  }
781
799
  },
@@ -763,12 +763,7 @@
763
763
  "techRecord_adrDetails_permittedDangerousGoods": {
764
764
  "type": "array",
765
765
  "contains": {
766
- "type": "string",
767
- "not": {
768
- "enum": [
769
- "Explosives (type 3)"
770
- ]
771
- }
766
+ "const": "Explosives (type 3)"
772
767
  }
773
768
  }
774
769
  },
@@ -776,11 +771,34 @@
776
771
  "techRecord_adrDetails_permittedDangerousGoods"
777
772
  ]
778
773
  },
779
- "then": {
780
- "not": {
774
+ "else": {
775
+ "if": {
776
+ "properties": {
777
+ "techRecord_adrDetails_permittedDangerousGoods": {
778
+ "type": "array",
779
+ "contains": {
780
+ "enum": [
781
+ "FP <61 (FL)",
782
+ "AT",
783
+ "Class 5.1 Hydrogen Peroxide (OX)",
784
+ "MEMU",
785
+ "Carbon Disulphide",
786
+ "Hydrogen",
787
+ "Explosives (type 2)"
788
+ ]
789
+ }
790
+ }
791
+ },
781
792
  "required": [
782
- "techRecord_adrDetails_bodyDeclaration_type"
793
+ "techRecord_adrDetails_permittedDangerousGoods"
783
794
  ]
795
+ },
796
+ "then": {
797
+ "not": {
798
+ "required": [
799
+ "techRecord_adrDetails_bodyDeclaration_type"
800
+ ]
801
+ }
784
802
  }
785
803
  }
786
804
  },
@@ -1542,12 +1542,7 @@
1542
1542
  "techRecord_adrDetails_permittedDangerousGoods": {
1543
1543
  "type": "array",
1544
1544
  "contains": {
1545
- "type": "string",
1546
- "not": {
1547
- "enum": [
1548
- "Explosives (type 3)"
1549
- ]
1550
- }
1545
+ "const": "Explosives (type 3)"
1551
1546
  }
1552
1547
  }
1553
1548
  },
@@ -1555,11 +1550,34 @@
1555
1550
  "techRecord_adrDetails_permittedDangerousGoods"
1556
1551
  ]
1557
1552
  },
1558
- "then": {
1559
- "not": {
1553
+ "else": {
1554
+ "if": {
1555
+ "properties": {
1556
+ "techRecord_adrDetails_permittedDangerousGoods": {
1557
+ "type": "array",
1558
+ "contains": {
1559
+ "enum": [
1560
+ "FP <61 (FL)",
1561
+ "AT",
1562
+ "Class 5.1 Hydrogen Peroxide (OX)",
1563
+ "MEMU",
1564
+ "Carbon Disulphide",
1565
+ "Hydrogen",
1566
+ "Explosives (type 2)"
1567
+ ]
1568
+ }
1569
+ }
1570
+ },
1560
1571
  "required": [
1561
- "techRecord_adrDetails_bodyDeclaration_type"
1572
+ "techRecord_adrDetails_permittedDangerousGoods"
1562
1573
  ]
1574
+ },
1575
+ "then": {
1576
+ "not": {
1577
+ "required": [
1578
+ "techRecord_adrDetails_bodyDeclaration_type"
1579
+ ]
1580
+ }
1563
1581
  }
1564
1582
  }
1565
1583
  },
@@ -1605,12 +1605,7 @@
1605
1605
  "techRecord_adrDetails_permittedDangerousGoods": {
1606
1606
  "type": "array",
1607
1607
  "contains": {
1608
- "type": "string",
1609
- "not": {
1610
- "enum": [
1611
- "Explosives (type 3)"
1612
- ]
1613
- }
1608
+ "const": "Explosives (type 3)"
1614
1609
  }
1615
1610
  }
1616
1611
  },
@@ -1618,11 +1613,34 @@
1618
1613
  "techRecord_adrDetails_permittedDangerousGoods"
1619
1614
  ]
1620
1615
  },
1621
- "then": {
1622
- "not": {
1616
+ "else": {
1617
+ "if": {
1618
+ "properties": {
1619
+ "techRecord_adrDetails_permittedDangerousGoods": {
1620
+ "type": "array",
1621
+ "contains": {
1622
+ "enum": [
1623
+ "FP <61 (FL)",
1624
+ "AT",
1625
+ "Class 5.1 Hydrogen Peroxide (OX)",
1626
+ "MEMU",
1627
+ "Carbon Disulphide",
1628
+ "Hydrogen",
1629
+ "Explosives (type 2)"
1630
+ ]
1631
+ }
1632
+ }
1633
+ },
1623
1634
  "required": [
1624
- "techRecord_adrDetails_bodyDeclaration_type"
1635
+ "techRecord_adrDetails_permittedDangerousGoods"
1625
1636
  ]
1637
+ },
1638
+ "then": {
1639
+ "not": {
1640
+ "required": [
1641
+ "techRecord_adrDetails_bodyDeclaration_type"
1642
+ ]
1643
+ }
1626
1644
  }
1627
1645
  }
1628
1646
  },
@@ -1593,12 +1593,7 @@
1593
1593
  "techRecord_adrDetails_permittedDangerousGoods": {
1594
1594
  "type": "array",
1595
1595
  "contains": {
1596
- "type": "string",
1597
- "not": {
1598
- "enum": [
1599
- "Explosives (type 3)"
1600
- ]
1601
- }
1596
+ "const": "Explosives (type 3)"
1602
1597
  }
1603
1598
  }
1604
1599
  },
@@ -1606,11 +1601,34 @@
1606
1601
  "techRecord_adrDetails_permittedDangerousGoods"
1607
1602
  ]
1608
1603
  },
1609
- "then": {
1610
- "not": {
1604
+ "else": {
1605
+ "if": {
1606
+ "properties": {
1607
+ "techRecord_adrDetails_permittedDangerousGoods": {
1608
+ "type": "array",
1609
+ "contains": {
1610
+ "enum": [
1611
+ "FP <61 (FL)",
1612
+ "AT",
1613
+ "Class 5.1 Hydrogen Peroxide (OX)",
1614
+ "MEMU",
1615
+ "Carbon Disulphide",
1616
+ "Hydrogen",
1617
+ "Explosives (type 2)"
1618
+ ]
1619
+ }
1620
+ }
1621
+ },
1611
1622
  "required": [
1612
- "techRecord_adrDetails_bodyDeclaration_type"
1623
+ "techRecord_adrDetails_permittedDangerousGoods"
1613
1624
  ]
1625
+ },
1626
+ "then": {
1627
+ "not": {
1628
+ "required": [
1629
+ "techRecord_adrDetails_bodyDeclaration_type"
1630
+ ]
1631
+ }
1614
1632
  }
1615
1633
  }
1616
1634
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvsa/cvs-type-definitions",
3
- "version": "7.5.0",
3
+ "version": "7.5.1",
4
4
  "description": "type definitions for cvs vta and vtm applications",
5
5
  "main": "index.js",
6
6
  "repository": {