@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.
@@ -126,6 +126,7 @@
126
126
  "items": {
127
127
  "title": "Additional Examiner Notes",
128
128
  "additionalProperties": false,
129
+ "type": "object",
129
130
  "properties": {
130
131
  "note": {
131
132
  "type": [
@@ -1171,5 +1172,111 @@
1171
1172
  "string"
1172
1173
  ]
1173
1174
  }
1175
+ },
1176
+ "if": {
1177
+ "properties": {
1178
+ "techRecord_adrDetails_dangerousGoods": {
1179
+ "const": true
1180
+ }
1181
+ },
1182
+ "required": [
1183
+ "techRecord_adrDetails_dangerousGoods"
1184
+ ]
1185
+ },
1186
+ "then": {
1187
+ "required": [
1188
+ "techRecord_adrDetails_vehicleDetails_type",
1189
+ "techRecord_adrDetails_vehicleDetails_approvalDate",
1190
+ "techRecord_adrDetails_permittedDangerousGoods",
1191
+ "techRecord_adrDetails_additionalNotes_number"
1192
+ ],
1193
+ "allOf": [
1194
+ {
1195
+ "if": {
1196
+ "properties": {
1197
+ "techRecord_adrDetails_permittedDangerousGoods": {
1198
+ "type": "array",
1199
+ "contains": {
1200
+ "type": "string",
1201
+ "pattern": "^Explosives \\(type \\d\\)$"
1202
+ }
1203
+ }
1204
+ },
1205
+ "required": [
1206
+ "techRecord_adrDetails_permittedDangerousGoods"
1207
+ ]
1208
+ },
1209
+ "then": {
1210
+ "required": [
1211
+ "techRecord_adrDetails_compatibilityGroupJ"
1212
+ ]
1213
+ }
1214
+ },
1215
+ {
1216
+ "if": {
1217
+ "properties": {
1218
+ "techRecord_adrDetails_vehicleDetails_type": {
1219
+ "enum": [
1220
+ "Rigid tank",
1221
+ "Rigid battery",
1222
+ "Full drawbar tank",
1223
+ "Full drawbar battery",
1224
+ "Centre axle tank",
1225
+ "Centre axle battery",
1226
+ "Semi trailer tank",
1227
+ "Semi trailer battery"
1228
+ ]
1229
+ }
1230
+ },
1231
+ "required": [
1232
+ "techRecord_adrDetails_vehicleDetails_type"
1233
+ ]
1234
+ },
1235
+ "then": {
1236
+ "required": [
1237
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturer",
1238
+ "techRecord_adrDetails_tank_tankDetails_yearOfManufacture",
1239
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturerSerialNo",
1240
+ "techRecord_adrDetails_tank_tankDetails_tankTypeAppNo",
1241
+ "techRecord_adrDetails_tank_tankDetails_tankCode",
1242
+ "techRecord_adrDetails_tank_tankDetails_tankStatement_substancesPermitted"
1243
+ ]
1244
+ }
1245
+ },
1246
+ {
1247
+ "if": {
1248
+ "properties": {
1249
+ "techRecord_adrDetails_listStatementApplicable": {
1250
+ "const": true
1251
+ }
1252
+ },
1253
+ "required": [
1254
+ "techRecord_adrDetails_listStatementApplicable"
1255
+ ]
1256
+ },
1257
+ "then": {
1258
+ "required": [
1259
+ "techRecord_adrDetails_batteryListNumber"
1260
+ ]
1261
+ }
1262
+ },
1263
+ {
1264
+ "if": {
1265
+ "properties": {
1266
+ "techRecord_adrDetails_brakeEndurance": {
1267
+ "const": true
1268
+ }
1269
+ },
1270
+ "required": [
1271
+ "techRecord_adrDetails_brakeEndurance"
1272
+ ]
1273
+ },
1274
+ "then": {
1275
+ "required": [
1276
+ "techRecord_adrDetails_weight"
1277
+ ]
1278
+ }
1279
+ }
1280
+ ]
1174
1281
  }
1175
1282
  }
@@ -96,6 +96,7 @@
96
96
  "items": {
97
97
  "title": "Additional Examiner Notes",
98
98
  "additionalProperties": false,
99
+ "type": "object",
99
100
  "properties": {
100
101
  "note": {
101
102
  "type": [
@@ -1252,5 +1253,111 @@
1252
1253
  "string"
1253
1254
  ]
1254
1255
  }
1256
+ },
1257
+ "if": {
1258
+ "properties": {
1259
+ "techRecord_adrDetails_dangerousGoods": {
1260
+ "const": true
1261
+ }
1262
+ },
1263
+ "required": [
1264
+ "techRecord_adrDetails_dangerousGoods"
1265
+ ]
1266
+ },
1267
+ "then": {
1268
+ "required": [
1269
+ "techRecord_adrDetails_vehicleDetails_type",
1270
+ "techRecord_adrDetails_vehicleDetails_approvalDate",
1271
+ "techRecord_adrDetails_permittedDangerousGoods",
1272
+ "techRecord_adrDetails_additionalNotes_number"
1273
+ ],
1274
+ "allOf": [
1275
+ {
1276
+ "if": {
1277
+ "properties": {
1278
+ "techRecord_adrDetails_permittedDangerousGoods": {
1279
+ "type": "array",
1280
+ "contains": {
1281
+ "type": "string",
1282
+ "pattern": "^Explosives \\(type \\d\\)$"
1283
+ }
1284
+ }
1285
+ },
1286
+ "required": [
1287
+ "techRecord_adrDetails_permittedDangerousGoods"
1288
+ ]
1289
+ },
1290
+ "then": {
1291
+ "required": [
1292
+ "techRecord_adrDetails_compatibilityGroupJ"
1293
+ ]
1294
+ }
1295
+ },
1296
+ {
1297
+ "if": {
1298
+ "properties": {
1299
+ "techRecord_adrDetails_vehicleDetails_type": {
1300
+ "enum": [
1301
+ "Rigid tank",
1302
+ "Rigid battery",
1303
+ "Full drawbar tank",
1304
+ "Full drawbar battery",
1305
+ "Centre axle tank",
1306
+ "Centre axle battery",
1307
+ "Semi trailer tank",
1308
+ "Semi trailer battery"
1309
+ ]
1310
+ }
1311
+ },
1312
+ "required": [
1313
+ "techRecord_adrDetails_vehicleDetails_type"
1314
+ ]
1315
+ },
1316
+ "then": {
1317
+ "required": [
1318
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturer",
1319
+ "techRecord_adrDetails_tank_tankDetails_yearOfManufacture",
1320
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturerSerialNo",
1321
+ "techRecord_adrDetails_tank_tankDetails_tankTypeAppNo",
1322
+ "techRecord_adrDetails_tank_tankDetails_tankCode",
1323
+ "techRecord_adrDetails_tank_tankDetails_tankStatement_substancesPermitted"
1324
+ ]
1325
+ }
1326
+ },
1327
+ {
1328
+ "if": {
1329
+ "properties": {
1330
+ "techRecord_adrDetails_listStatementApplicable": {
1331
+ "const": true
1332
+ }
1333
+ },
1334
+ "required": [
1335
+ "techRecord_adrDetails_listStatementApplicable"
1336
+ ]
1337
+ },
1338
+ "then": {
1339
+ "required": [
1340
+ "techRecord_adrDetails_batteryListNumber"
1341
+ ]
1342
+ }
1343
+ },
1344
+ {
1345
+ "if": {
1346
+ "properties": {
1347
+ "techRecord_adrDetails_brakeEndurance": {
1348
+ "const": true
1349
+ }
1350
+ },
1351
+ "required": [
1352
+ "techRecord_adrDetails_brakeEndurance"
1353
+ ]
1354
+ },
1355
+ "then": {
1356
+ "required": [
1357
+ "techRecord_adrDetails_weight"
1358
+ ]
1359
+ }
1360
+ }
1361
+ ]
1255
1362
  }
1256
1363
  }
@@ -100,6 +100,7 @@
100
100
  "items": {
101
101
  "title": "Additional Examiner Notes",
102
102
  "additionalProperties": false,
103
+ "type": "object",
103
104
  "properties": {
104
105
  "note": {
105
106
  "type": [
@@ -1243,5 +1244,111 @@
1243
1244
  "string"
1244
1245
  ]
1245
1246
  }
1247
+ },
1248
+ "if": {
1249
+ "properties": {
1250
+ "techRecord_adrDetails_dangerousGoods": {
1251
+ "const": true
1252
+ }
1253
+ },
1254
+ "required": [
1255
+ "techRecord_adrDetails_dangerousGoods"
1256
+ ]
1257
+ },
1258
+ "then": {
1259
+ "required": [
1260
+ "techRecord_adrDetails_vehicleDetails_type",
1261
+ "techRecord_adrDetails_vehicleDetails_approvalDate",
1262
+ "techRecord_adrDetails_permittedDangerousGoods",
1263
+ "techRecord_adrDetails_additionalNotes_number"
1264
+ ],
1265
+ "allOf": [
1266
+ {
1267
+ "if": {
1268
+ "properties": {
1269
+ "techRecord_adrDetails_permittedDangerousGoods": {
1270
+ "type": "array",
1271
+ "contains": {
1272
+ "type": "string",
1273
+ "pattern": "^Explosives \\(type \\d\\)$"
1274
+ }
1275
+ }
1276
+ },
1277
+ "required": [
1278
+ "techRecord_adrDetails_permittedDangerousGoods"
1279
+ ]
1280
+ },
1281
+ "then": {
1282
+ "required": [
1283
+ "techRecord_adrDetails_compatibilityGroupJ"
1284
+ ]
1285
+ }
1286
+ },
1287
+ {
1288
+ "if": {
1289
+ "properties": {
1290
+ "techRecord_adrDetails_vehicleDetails_type": {
1291
+ "enum": [
1292
+ "Rigid tank",
1293
+ "Rigid battery",
1294
+ "Full drawbar tank",
1295
+ "Full drawbar battery",
1296
+ "Centre axle tank",
1297
+ "Centre axle battery",
1298
+ "Semi trailer tank",
1299
+ "Semi trailer battery"
1300
+ ]
1301
+ }
1302
+ },
1303
+ "required": [
1304
+ "techRecord_adrDetails_vehicleDetails_type"
1305
+ ]
1306
+ },
1307
+ "then": {
1308
+ "required": [
1309
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturer",
1310
+ "techRecord_adrDetails_tank_tankDetails_yearOfManufacture",
1311
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturerSerialNo",
1312
+ "techRecord_adrDetails_tank_tankDetails_tankTypeAppNo",
1313
+ "techRecord_adrDetails_tank_tankDetails_tankCode",
1314
+ "techRecord_adrDetails_tank_tankDetails_tankStatement_substancesPermitted"
1315
+ ]
1316
+ }
1317
+ },
1318
+ {
1319
+ "if": {
1320
+ "properties": {
1321
+ "techRecord_adrDetails_listStatementApplicable": {
1322
+ "const": true
1323
+ }
1324
+ },
1325
+ "required": [
1326
+ "techRecord_adrDetails_listStatementApplicable"
1327
+ ]
1328
+ },
1329
+ "then": {
1330
+ "required": [
1331
+ "techRecord_adrDetails_batteryListNumber"
1332
+ ]
1333
+ }
1334
+ },
1335
+ {
1336
+ "if": {
1337
+ "properties": {
1338
+ "techRecord_adrDetails_brakeEndurance": {
1339
+ "const": true
1340
+ }
1341
+ },
1342
+ "required": [
1343
+ "techRecord_adrDetails_brakeEndurance"
1344
+ ]
1345
+ },
1346
+ "then": {
1347
+ "required": [
1348
+ "techRecord_adrDetails_weight"
1349
+ ]
1350
+ }
1351
+ }
1352
+ ]
1246
1353
  }
1247
1354
  }
@@ -131,6 +131,7 @@
131
131
  "items": {
132
132
  "title": "Additional Examiner Notes",
133
133
  "additionalProperties": false,
134
+ "type": "object",
134
135
  "properties": {
135
136
  "note": {
136
137
  "type": [
@@ -697,5 +698,111 @@
697
698
  "type": "string"
698
699
  }
699
700
  }
701
+ },
702
+ "if": {
703
+ "properties": {
704
+ "techRecord_adrDetails_dangerousGoods": {
705
+ "const": true
706
+ }
707
+ },
708
+ "required": [
709
+ "techRecord_adrDetails_dangerousGoods"
710
+ ]
711
+ },
712
+ "then": {
713
+ "required": [
714
+ "techRecord_adrDetails_vehicleDetails_type",
715
+ "techRecord_adrDetails_vehicleDetails_approvalDate",
716
+ "techRecord_adrDetails_permittedDangerousGoods",
717
+ "techRecord_adrDetails_additionalNotes_number"
718
+ ],
719
+ "allOf": [
720
+ {
721
+ "if": {
722
+ "properties": {
723
+ "techRecord_adrDetails_permittedDangerousGoods": {
724
+ "type": "array",
725
+ "contains": {
726
+ "type": "string",
727
+ "pattern": "^Explosives \\(type \\d\\)$"
728
+ }
729
+ }
730
+ },
731
+ "required": [
732
+ "techRecord_adrDetails_permittedDangerousGoods"
733
+ ]
734
+ },
735
+ "then": {
736
+ "required": [
737
+ "techRecord_adrDetails_compatibilityGroupJ"
738
+ ]
739
+ }
740
+ },
741
+ {
742
+ "if": {
743
+ "properties": {
744
+ "techRecord_adrDetails_vehicleDetails_type": {
745
+ "enum": [
746
+ "Rigid tank",
747
+ "Rigid battery",
748
+ "Full drawbar tank",
749
+ "Full drawbar battery",
750
+ "Centre axle tank",
751
+ "Centre axle battery",
752
+ "Semi trailer tank",
753
+ "Semi trailer battery"
754
+ ]
755
+ }
756
+ },
757
+ "required": [
758
+ "techRecord_adrDetails_vehicleDetails_type"
759
+ ]
760
+ },
761
+ "then": {
762
+ "required": [
763
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturer",
764
+ "techRecord_adrDetails_tank_tankDetails_yearOfManufacture",
765
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturerSerialNo",
766
+ "techRecord_adrDetails_tank_tankDetails_tankTypeAppNo",
767
+ "techRecord_adrDetails_tank_tankDetails_tankCode",
768
+ "techRecord_adrDetails_tank_tankDetails_tankStatement_substancesPermitted"
769
+ ]
770
+ }
771
+ },
772
+ {
773
+ "if": {
774
+ "properties": {
775
+ "techRecord_adrDetails_listStatementApplicable": {
776
+ "const": true
777
+ }
778
+ },
779
+ "required": [
780
+ "techRecord_adrDetails_listStatementApplicable"
781
+ ]
782
+ },
783
+ "then": {
784
+ "required": [
785
+ "techRecord_adrDetails_batteryListNumber"
786
+ ]
787
+ }
788
+ },
789
+ {
790
+ "if": {
791
+ "properties": {
792
+ "techRecord_adrDetails_brakeEndurance": {
793
+ "const": true
794
+ }
795
+ },
796
+ "required": [
797
+ "techRecord_adrDetails_brakeEndurance"
798
+ ]
799
+ },
800
+ "then": {
801
+ "required": [
802
+ "techRecord_adrDetails_weight"
803
+ ]
804
+ }
805
+ }
806
+ ]
700
807
  }
701
808
  }
@@ -128,6 +128,7 @@
128
128
  "items": {
129
129
  "title": "Additional Examiner Notes",
130
130
  "additionalProperties": false,
131
+ "type": "object",
131
132
  "properties": {
132
133
  "note": {
133
134
  "type": [
@@ -704,5 +705,111 @@
704
705
  ]
705
706
  }
706
707
  }
708
+ },
709
+ "if": {
710
+ "properties": {
711
+ "techRecord_adrDetails_dangerousGoods": {
712
+ "const": true
713
+ }
714
+ },
715
+ "required": [
716
+ "techRecord_adrDetails_dangerousGoods"
717
+ ]
718
+ },
719
+ "then": {
720
+ "required": [
721
+ "techRecord_adrDetails_vehicleDetails_type",
722
+ "techRecord_adrDetails_vehicleDetails_approvalDate",
723
+ "techRecord_adrDetails_permittedDangerousGoods",
724
+ "techRecord_adrDetails_additionalNotes_number"
725
+ ],
726
+ "allOf": [
727
+ {
728
+ "if": {
729
+ "properties": {
730
+ "techRecord_adrDetails_permittedDangerousGoods": {
731
+ "type": "array",
732
+ "contains": {
733
+ "type": "string",
734
+ "pattern": "^Explosives \\(type \\d\\)$"
735
+ }
736
+ }
737
+ },
738
+ "required": [
739
+ "techRecord_adrDetails_permittedDangerousGoods"
740
+ ]
741
+ },
742
+ "then": {
743
+ "required": [
744
+ "techRecord_adrDetails_compatibilityGroupJ"
745
+ ]
746
+ }
747
+ },
748
+ {
749
+ "if": {
750
+ "properties": {
751
+ "techRecord_adrDetails_vehicleDetails_type": {
752
+ "enum": [
753
+ "Rigid tank",
754
+ "Rigid battery",
755
+ "Full drawbar tank",
756
+ "Full drawbar battery",
757
+ "Centre axle tank",
758
+ "Centre axle battery",
759
+ "Semi trailer tank",
760
+ "Semi trailer battery"
761
+ ]
762
+ }
763
+ },
764
+ "required": [
765
+ "techRecord_adrDetails_vehicleDetails_type"
766
+ ]
767
+ },
768
+ "then": {
769
+ "required": [
770
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturer",
771
+ "techRecord_adrDetails_tank_tankDetails_yearOfManufacture",
772
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturerSerialNo",
773
+ "techRecord_adrDetails_tank_tankDetails_tankTypeAppNo",
774
+ "techRecord_adrDetails_tank_tankDetails_tankCode",
775
+ "techRecord_adrDetails_tank_tankDetails_tankStatement_substancesPermitted"
776
+ ]
777
+ }
778
+ },
779
+ {
780
+ "if": {
781
+ "properties": {
782
+ "techRecord_adrDetails_listStatementApplicable": {
783
+ "const": true
784
+ }
785
+ },
786
+ "required": [
787
+ "techRecord_adrDetails_listStatementApplicable"
788
+ ]
789
+ },
790
+ "then": {
791
+ "required": [
792
+ "techRecord_adrDetails_batteryListNumber"
793
+ ]
794
+ }
795
+ },
796
+ {
797
+ "if": {
798
+ "properties": {
799
+ "techRecord_adrDetails_brakeEndurance": {
800
+ "const": true
801
+ }
802
+ },
803
+ "required": [
804
+ "techRecord_adrDetails_brakeEndurance"
805
+ ]
806
+ },
807
+ "then": {
808
+ "required": [
809
+ "techRecord_adrDetails_weight"
810
+ ]
811
+ }
812
+ }
813
+ ]
707
814
  }
708
815
  }