@pdtf/schemas 3.0.0-31 → 3.0.0-33

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdtf/schemas",
3
- "version": "3.0.0-31",
3
+ "version": "3.0.0-33",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -7224,14 +7224,54 @@
7224
7224
  },
7225
7225
  "landlordConsentObtained": {
7226
7226
  "ta7Ref": "9.3",
7227
- "title": "Was the landlord’s consent for the alterations obtained? If Yes, please supply a copy.",
7228
- "type": "string",
7229
- "enum": [
7230
- "No",
7231
- "Not known",
7232
- "Not required",
7233
- "Attached",
7234
- "To follow"
7227
+ "title": "Was the landlord’s consent for the alterations obtained?",
7228
+ "type": "object",
7229
+ "properties": {
7230
+ "yesNo": {
7231
+ "ta7Ref": "9.3.1",
7232
+ "type": "string",
7233
+ "title": "",
7234
+ "enum": [
7235
+ "Yes",
7236
+ "No",
7237
+ "Not known",
7238
+ "Not required"
7239
+ ]
7240
+ }
7241
+ },
7242
+ "ta7Required": ["yesNo"],
7243
+ "discriminator": {
7244
+ "propertyName": "yesNo"
7245
+ },
7246
+ "oneOf": [
7247
+ {
7248
+ "properties": {
7249
+ "yesNo": {
7250
+ "enum": [
7251
+ "No",
7252
+ "Not known",
7253
+ "Not required"
7254
+ ]
7255
+ }
7256
+ }
7257
+ },
7258
+ {
7259
+ "properties": {
7260
+ "yesNo": {
7261
+ "enum": ["Yes"]
7262
+ },
7263
+ "attachments": {
7264
+ "ta7Ref": "9.3.2",
7265
+ "title": "Please supply a copy.",
7266
+ "type": "string",
7267
+ "enum": [
7268
+ "Attached",
7269
+ "To follow"
7270
+ ]
7271
+ }
7272
+ },
7273
+ "ta7Required": ["attachments"]
7274
+ }
7235
7275
  ]
7236
7276
  }
7237
7277
  },
@@ -7672,14 +7712,14 @@
7672
7712
  ],
7673
7713
  "properties": {
7674
7714
  "lease": {
7675
- "ta7Ref": "3.1a1",
7715
+ "ta7Ref": "3.1a",
7676
7716
  "title": "Please supply a copy of the lease.",
7677
7717
  "type": "string",
7678
7718
  "enum": ["Attached", "To follow"]
7679
7719
  },
7680
7720
  "deedsOfVariation": {
7681
7721
  "lpe1Ref": "8.9",
7682
- "ta7Ref": "3.1a2",
7722
+ "ta7Ref": "3.1b",
7683
7723
  "title": "Any Deeds of Variation or other document varying the terms of the lease of this Property.",
7684
7724
  "ta7Title": "Any supplemental deeds.",
7685
7725
  "type": "string",
@@ -7762,26 +7802,90 @@
7762
7802
  },
7763
7803
  "noticeOfSale": {
7764
7804
  "ta7Ref": "6.1",
7765
- "title": "Has the seller received a notice that the landlord wants to sell the building? If Yes, please supply a copy.",
7766
- "type": "string",
7767
- "enum": [
7768
- "Yes",
7769
- "No",
7770
- "Attached",
7771
- "To follow",
7772
- "Lost"
7805
+ "title": "Has the seller received a notice that the landlord wants to sell the building?",
7806
+ "type": "object",
7807
+ "properties": {
7808
+ "yesNo": {
7809
+ "ta7Ref": "6.1.1",
7810
+ "type": "string",
7811
+ "title": "",
7812
+ "enum": ["Yes", "No"]
7813
+ }
7814
+ },
7815
+ "ta7Required": ["yesNo"],
7816
+ "discriminator": {
7817
+ "propertyName": "yesNo"
7818
+ },
7819
+ "oneOf": [
7820
+ {
7821
+ "properties": {
7822
+ "yesNo": {
7823
+ "enum": ["No"]
7824
+ }
7825
+ }
7826
+ },
7827
+ {
7828
+ "properties": {
7829
+ "yesNo": {
7830
+ "enum": ["Yes"]
7831
+ },
7832
+ "attachments": {
7833
+ "ta7Ref": "6.1.2",
7834
+ "title": "Please supply a copy.",
7835
+ "type": "string",
7836
+ "enum": [
7837
+ "Attached",
7838
+ "To follow",
7839
+ "Lost"
7840
+ ]
7841
+ }
7842
+ },
7843
+ "ta7Required": ["attachments"]
7844
+ }
7773
7845
  ]
7774
7846
  },
7775
7847
  "noticeOfBuildingCondition": {
7776
7848
  "ta7Ref": "6.2",
7777
- "title": "Has the seller received any other notice about the building, its use, its condition or its repair and maintenance? If Yes, please supply a copy.",
7778
- "type": "string",
7779
- "enum": [
7780
- "Yes",
7781
- "No",
7782
- "Attached",
7783
- "To follow",
7784
- "Lost"
7849
+ "title": "Has the seller received any other notice about the building, its use, its condition or its repair and maintenance?",
7850
+ "type": "object",
7851
+ "properties": {
7852
+ "yesNo": {
7853
+ "ta7Ref": "6.2.1",
7854
+ "type": "string",
7855
+ "title": "",
7856
+ "enum": ["Yes", "No"]
7857
+ }
7858
+ },
7859
+ "ta7Required": ["yesNo"],
7860
+ "discriminator": {
7861
+ "propertyName": "yesNo"
7862
+ },
7863
+ "oneOf": [
7864
+ {
7865
+ "properties": {
7866
+ "yesNo": {
7867
+ "enum": ["No"]
7868
+ }
7869
+ }
7870
+ },
7871
+ {
7872
+ "properties": {
7873
+ "yesNo": {
7874
+ "enum": ["Yes"]
7875
+ },
7876
+ "attachments": {
7877
+ "ta7Ref": "6.2.2",
7878
+ "title": "Please supply a copy.",
7879
+ "type": "string",
7880
+ "enum": [
7881
+ "Attached",
7882
+ "To follow",
7883
+ "Lost"
7884
+ ]
7885
+ }
7886
+ },
7887
+ "ta7Required": ["attachments"]
7888
+ }
7785
7889
  ]
7786
7890
  },
7787
7891
  "managedAreasBuildingsInsurancePolicy": {
@@ -12245,6 +12349,7 @@
12245
12349
  ]
12246
12350
  },
12247
12351
  "otherItems": {
12352
+ "ta10Ref": "1.16",
12248
12353
  "title": "Other items (please specify)",
12249
12354
  "type": "array",
12250
12355
  "items": {
@@ -12343,7 +12448,7 @@
12343
12448
  "enum": ["Included"]
12344
12449
  },
12345
12450
  "fittedOrFreestanding": {
12346
- "ta10Ref": "xxx",
12451
+ "ta10Ref": "2.1d",
12347
12452
  "type": "object",
12348
12453
  "properties": {
12349
12454
  "isFittedOrFreestanding": {
@@ -12397,7 +12502,7 @@
12397
12502
  "type": "number"
12398
12503
  },
12399
12504
  "fittedOrFreestanding": {
12400
- "ta10Ref": "xxx",
12505
+ "ta10Ref": "2.1d",
12401
12506
  "type": "object",
12402
12507
  "properties": {
12403
12508
  "isFittedOrFreestanding": {
@@ -12477,7 +12582,7 @@
12477
12582
  "enum": ["Included"]
12478
12583
  },
12479
12584
  "fittedOrFreestanding": {
12480
- "ta10Ref": "xxx",
12585
+ "ta10Ref": "2.2d",
12481
12586
  "type": "object",
12482
12587
  "properties": {
12483
12588
  "isFittedOrFreestanding": {
@@ -12531,7 +12636,7 @@
12531
12636
  "type": "number"
12532
12637
  },
12533
12638
  "fittedOrFreestanding": {
12534
- "ta10Ref": "xxx",
12639
+ "ta10Ref": "2.2d",
12535
12640
  "type": "object",
12536
12641
  "properties": {
12537
12642
  "isFittedOrFreestanding": {
@@ -12611,7 +12716,7 @@
12611
12716
  "enum": ["Included"]
12612
12717
  },
12613
12718
  "fittedOrFreestanding": {
12614
- "ta10Ref": "xxx",
12719
+ "ta10Ref": "2.3d",
12615
12720
  "type": "object",
12616
12721
  "properties": {
12617
12722
  "isFittedOrFreestanding": {
@@ -12665,7 +12770,7 @@
12665
12770
  "type": "number"
12666
12771
  },
12667
12772
  "fittedOrFreestanding": {
12668
- "ta10Ref": "xxx",
12773
+ "ta10Ref": "2.3d",
12669
12774
  "type": "object",
12670
12775
  "properties": {
12671
12776
  "isFittedOrFreestanding": {
@@ -12745,7 +12850,7 @@
12745
12850
  "enum": ["Included"]
12746
12851
  },
12747
12852
  "fittedOrFreestanding": {
12748
- "ta10Ref": "xxx",
12853
+ "ta10Ref": "2.4d",
12749
12854
  "type": "object",
12750
12855
  "properties": {
12751
12856
  "isFittedOrFreestanding": {
@@ -12799,7 +12904,7 @@
12799
12904
  "type": "number"
12800
12905
  },
12801
12906
  "fittedOrFreestanding": {
12802
- "ta10Ref": "xxx",
12907
+ "ta10Ref": "2.4d",
12803
12908
  "type": "object",
12804
12909
  "properties": {
12805
12910
  "isFittedOrFreestanding": {
@@ -12879,7 +12984,7 @@
12879
12984
  "enum": ["Included"]
12880
12985
  },
12881
12986
  "fittedOrFreestanding": {
12882
- "ta10Ref": "xxx",
12987
+ "ta10Ref": "2.5d",
12883
12988
  "type": "object",
12884
12989
  "properties": {
12885
12990
  "isFittedOrFreestanding": {
@@ -12933,7 +13038,7 @@
12933
13038
  "type": "number"
12934
13039
  },
12935
13040
  "fittedOrFreestanding": {
12936
- "ta10Ref": "xxx",
13041
+ "ta10Ref": "2.5d",
12937
13042
  "type": "object",
12938
13043
  "properties": {
12939
13044
  "isFittedOrFreestanding": {
@@ -13013,7 +13118,7 @@
13013
13118
  "enum": ["Included"]
13014
13119
  },
13015
13120
  "fittedOrFreestanding": {
13016
- "ta10Ref": "xxx",
13121
+ "ta10Ref": "2.6d",
13017
13122
  "type": "object",
13018
13123
  "properties": {
13019
13124
  "isFittedOrFreestanding": {
@@ -13067,7 +13172,7 @@
13067
13172
  "type": "number"
13068
13173
  },
13069
13174
  "fittedOrFreestanding": {
13070
- "ta10Ref": "xxx",
13175
+ "ta10Ref": "2.6d",
13071
13176
  "type": "object",
13072
13177
  "properties": {
13073
13178
  "isFittedOrFreestanding": {
@@ -13147,7 +13252,7 @@
13147
13252
  "enum": ["Included"]
13148
13253
  },
13149
13254
  "fittedOrFreestanding": {
13150
- "ta10Ref": "xxx",
13255
+ "ta10Ref": "2.7d",
13151
13256
  "type": "object",
13152
13257
  "properties": {
13153
13258
  "isFittedOrFreestanding": {
@@ -13201,7 +13306,7 @@
13201
13306
  "type": "number"
13202
13307
  },
13203
13308
  "fittedOrFreestanding": {
13204
- "ta10Ref": "xxx",
13309
+ "ta10Ref": "2.7d",
13205
13310
  "type": "object",
13206
13311
  "properties": {
13207
13312
  "isFittedOrFreestanding": {
@@ -13281,7 +13386,7 @@
13281
13386
  "enum": ["Included"]
13282
13387
  },
13283
13388
  "fittedOrFreestanding": {
13284
- "ta10Ref": "xxx",
13389
+ "ta10Ref": "2.8d",
13285
13390
  "type": "object",
13286
13391
  "properties": {
13287
13392
  "isFittedOrFreestanding": {
@@ -13335,7 +13440,7 @@
13335
13440
  "type": "number"
13336
13441
  },
13337
13442
  "fittedOrFreestanding": {
13338
- "ta10Ref": "xxx",
13443
+ "ta10Ref": "2.8d",
13339
13444
  "type": "object",
13340
13445
  "properties": {
13341
13446
  "isFittedOrFreestanding": {
@@ -13415,7 +13520,7 @@
13415
13520
  "enum": ["Included"]
13416
13521
  },
13417
13522
  "fittedOrFreestanding": {
13418
- "ta10Ref": "xxx",
13523
+ "ta10Ref": "2.9d",
13419
13524
  "type": "object",
13420
13525
  "properties": {
13421
13526
  "isFittedOrFreestanding": {
@@ -13469,7 +13574,7 @@
13469
13574
  "type": "number"
13470
13575
  },
13471
13576
  "fittedOrFreestanding": {
13472
- "ta10Ref": "xxx",
13577
+ "ta10Ref": "2.9d",
13473
13578
  "type": "object",
13474
13579
  "properties": {
13475
13580
  "isFittedOrFreestanding": {
@@ -13549,7 +13654,7 @@
13549
13654
  "enum": ["Included"]
13550
13655
  },
13551
13656
  "fittedOrFreestanding": {
13552
- "ta10Ref": "xxx",
13657
+ "ta10Ref": "2.10d",
13553
13658
  "type": "object",
13554
13659
  "properties": {
13555
13660
  "isFittedOrFreestanding": {
@@ -13603,7 +13708,7 @@
13603
13708
  "type": "number"
13604
13709
  },
13605
13710
  "fittedOrFreestanding": {
13606
- "ta10Ref": "xxx",
13711
+ "ta10Ref": "2.10d",
13607
13712
  "type": "object",
13608
13713
  "properties": {
13609
13714
  "isFittedOrFreestanding": {
@@ -13661,6 +13766,7 @@
13661
13766
  ]
13662
13767
  },
13663
13768
  "otherItems": {
13769
+ "ta10Ref": "2.11",
13664
13770
  "title": "Other items (please specify)",
13665
13771
  "type": "array",
13666
13772
  "items": {
@@ -13689,7 +13795,7 @@
13689
13795
  "enum": ["Included"]
13690
13796
  },
13691
13797
  "fittedOrFreestanding": {
13692
- "ta10Ref": "xxx",
13798
+ "ta10Ref": "2.11d",
13693
13799
  "type": "object",
13694
13800
  "properties": {
13695
13801
  "isFittedOrFreestanding": {
@@ -13743,7 +13849,7 @@
13743
13849
  "type": "number"
13744
13850
  },
13745
13851
  "fittedOrFreestanding": {
13746
- "ta10Ref": "xxx",
13852
+ "ta10Ref": "2.11d",
13747
13853
  "type": "object",
13748
13854
  "properties": {
13749
13855
  "isFittedOrFreestanding": {
@@ -14858,6 +14964,7 @@
14858
14964
  ]
14859
14965
  },
14860
14966
  "otherRooms": {
14967
+ "ta10Ref": "4.8",
14861
14968
  "title": "Other rooms (please specify)",
14862
14969
  "type": "array",
14863
14970
  "items": {
@@ -15355,6 +15462,7 @@
15355
15462
  ]
15356
15463
  },
15357
15464
  "otherRooms": {
15465
+ "ta10Ref": "5.8",
15358
15466
  "title": "Other rooms (please specify)",
15359
15467
  "type": "array",
15360
15468
  "items": {
@@ -15846,6 +15954,7 @@
15846
15954
  ]
15847
15955
  },
15848
15956
  "otherRooms": {
15957
+ "ta10Ref": "5.19",
15849
15958
  "title": "Other rooms (please specify)",
15850
15959
  "type": "array",
15851
15960
  "items": {
@@ -16341,6 +16450,7 @@
16341
16450
  ]
16342
16451
  },
16343
16452
  "otherRooms": {
16453
+ "ta10Ref": "6.8",
16344
16454
  "title": "Other rooms (please specify)",
16345
16455
  "type": "array",
16346
16456
  "items": {
@@ -16834,6 +16944,7 @@
16834
16944
  ]
16835
16945
  },
16836
16946
  "otherRooms": {
16947
+ "ta10Ref": "7.8",
16837
16948
  "title": "Other rooms (please specify)",
16838
16949
  "type": "array",
16839
16950
  "items": {
@@ -17631,6 +17742,7 @@
17631
17742
  ]
17632
17743
  },
17633
17744
  "otherItems": {
17745
+ "ta10Ref": "8.13",
17634
17746
  "title": "Other items (please specify)",
17635
17747
  "type": "array",
17636
17748
  "items": {
@@ -886,6 +886,7 @@
886
886
  }
887
887
  },
888
888
  "otherItems": {
889
+ "ta10Ref": "1.16",
889
890
  "items": {
890
891
  "required": [
891
892
  "itemName",
@@ -952,7 +953,7 @@
952
953
  ]
953
954
  },
954
955
  "fittedOrFreestanding": {
955
- "ta10Ref": "xxx",
956
+ "ta10Ref": "2.1d",
956
957
  "discriminator": {
957
958
  "propertyName": "isFittedOrFreestanding"
958
959
  },
@@ -1004,7 +1005,7 @@
1004
1005
  "ta10Ref": "2.1b"
1005
1006
  },
1006
1007
  "fittedOrFreestanding": {
1007
- "ta10Ref": "xxx",
1008
+ "ta10Ref": "2.1d",
1008
1009
  "discriminator": {
1009
1010
  "propertyName": "isFittedOrFreestanding"
1010
1011
  },
@@ -1081,7 +1082,7 @@
1081
1082
  ]
1082
1083
  },
1083
1084
  "fittedOrFreestanding": {
1084
- "ta10Ref": "xxx",
1085
+ "ta10Ref": "2.2d",
1085
1086
  "discriminator": {
1086
1087
  "propertyName": "isFittedOrFreestanding"
1087
1088
  },
@@ -1133,7 +1134,7 @@
1133
1134
  "ta10Ref": "2.2b"
1134
1135
  },
1135
1136
  "fittedOrFreestanding": {
1136
- "ta10Ref": "xxx",
1137
+ "ta10Ref": "2.2d",
1137
1138
  "discriminator": {
1138
1139
  "propertyName": "isFittedOrFreestanding"
1139
1140
  },
@@ -1210,7 +1211,7 @@
1210
1211
  ]
1211
1212
  },
1212
1213
  "fittedOrFreestanding": {
1213
- "ta10Ref": "xxx",
1214
+ "ta10Ref": "2.3d",
1214
1215
  "discriminator": {
1215
1216
  "propertyName": "isFittedOrFreestanding"
1216
1217
  },
@@ -1262,7 +1263,7 @@
1262
1263
  "ta10Ref": "2.3b"
1263
1264
  },
1264
1265
  "fittedOrFreestanding": {
1265
- "ta10Ref": "xxx",
1266
+ "ta10Ref": "2.3d",
1266
1267
  "discriminator": {
1267
1268
  "propertyName": "isFittedOrFreestanding"
1268
1269
  },
@@ -1339,7 +1340,7 @@
1339
1340
  ]
1340
1341
  },
1341
1342
  "fittedOrFreestanding": {
1342
- "ta10Ref": "xxx",
1343
+ "ta10Ref": "2.4d",
1343
1344
  "discriminator": {
1344
1345
  "propertyName": "isFittedOrFreestanding"
1345
1346
  },
@@ -1391,7 +1392,7 @@
1391
1392
  "ta10Ref": "2.4b"
1392
1393
  },
1393
1394
  "fittedOrFreestanding": {
1394
- "ta10Ref": "xxx",
1395
+ "ta10Ref": "2.4d",
1395
1396
  "discriminator": {
1396
1397
  "propertyName": "isFittedOrFreestanding"
1397
1398
  },
@@ -1468,7 +1469,7 @@
1468
1469
  ]
1469
1470
  },
1470
1471
  "fittedOrFreestanding": {
1471
- "ta10Ref": "xxx",
1472
+ "ta10Ref": "2.5d",
1472
1473
  "discriminator": {
1473
1474
  "propertyName": "isFittedOrFreestanding"
1474
1475
  },
@@ -1520,7 +1521,7 @@
1520
1521
  "ta10Ref": "2.5b"
1521
1522
  },
1522
1523
  "fittedOrFreestanding": {
1523
- "ta10Ref": "xxx",
1524
+ "ta10Ref": "2.5d",
1524
1525
  "discriminator": {
1525
1526
  "propertyName": "isFittedOrFreestanding"
1526
1527
  },
@@ -1597,7 +1598,7 @@
1597
1598
  ]
1598
1599
  },
1599
1600
  "fittedOrFreestanding": {
1600
- "ta10Ref": "xxx",
1601
+ "ta10Ref": "2.6d",
1601
1602
  "discriminator": {
1602
1603
  "propertyName": "isFittedOrFreestanding"
1603
1604
  },
@@ -1649,7 +1650,7 @@
1649
1650
  "ta10Ref": "2.6b"
1650
1651
  },
1651
1652
  "fittedOrFreestanding": {
1652
- "ta10Ref": "xxx",
1653
+ "ta10Ref": "2.6d",
1653
1654
  "discriminator": {
1654
1655
  "propertyName": "isFittedOrFreestanding"
1655
1656
  },
@@ -1726,7 +1727,7 @@
1726
1727
  ]
1727
1728
  },
1728
1729
  "fittedOrFreestanding": {
1729
- "ta10Ref": "xxx",
1730
+ "ta10Ref": "2.7d",
1730
1731
  "discriminator": {
1731
1732
  "propertyName": "isFittedOrFreestanding"
1732
1733
  },
@@ -1778,7 +1779,7 @@
1778
1779
  "ta10Ref": "2.7b"
1779
1780
  },
1780
1781
  "fittedOrFreestanding": {
1781
- "ta10Ref": "xxx",
1782
+ "ta10Ref": "2.7d",
1782
1783
  "discriminator": {
1783
1784
  "propertyName": "isFittedOrFreestanding"
1784
1785
  },
@@ -1855,7 +1856,7 @@
1855
1856
  ]
1856
1857
  },
1857
1858
  "fittedOrFreestanding": {
1858
- "ta10Ref": "xxx",
1859
+ "ta10Ref": "2.8d",
1859
1860
  "discriminator": {
1860
1861
  "propertyName": "isFittedOrFreestanding"
1861
1862
  },
@@ -1907,7 +1908,7 @@
1907
1908
  "ta10Ref": "2.8b"
1908
1909
  },
1909
1910
  "fittedOrFreestanding": {
1910
- "ta10Ref": "xxx",
1911
+ "ta10Ref": "2.8d",
1911
1912
  "discriminator": {
1912
1913
  "propertyName": "isFittedOrFreestanding"
1913
1914
  },
@@ -1984,7 +1985,7 @@
1984
1985
  ]
1985
1986
  },
1986
1987
  "fittedOrFreestanding": {
1987
- "ta10Ref": "xxx",
1988
+ "ta10Ref": "2.9d",
1988
1989
  "discriminator": {
1989
1990
  "propertyName": "isFittedOrFreestanding"
1990
1991
  },
@@ -2036,7 +2037,7 @@
2036
2037
  "ta10Ref": "2.9b"
2037
2038
  },
2038
2039
  "fittedOrFreestanding": {
2039
- "ta10Ref": "xxx",
2040
+ "ta10Ref": "2.9d",
2040
2041
  "discriminator": {
2041
2042
  "propertyName": "isFittedOrFreestanding"
2042
2043
  },
@@ -2113,7 +2114,7 @@
2113
2114
  ]
2114
2115
  },
2115
2116
  "fittedOrFreestanding": {
2116
- "ta10Ref": "xxx",
2117
+ "ta10Ref": "2.10d",
2117
2118
  "discriminator": {
2118
2119
  "propertyName": "isFittedOrFreestanding"
2119
2120
  },
@@ -2165,7 +2166,7 @@
2165
2166
  "ta10Ref": "2.10b"
2166
2167
  },
2167
2168
  "fittedOrFreestanding": {
2168
- "ta10Ref": "xxx",
2169
+ "ta10Ref": "2.10d",
2169
2170
  "discriminator": {
2170
2171
  "propertyName": "isFittedOrFreestanding"
2171
2172
  },
@@ -2229,6 +2230,7 @@
2229
2230
  }
2230
2231
  },
2231
2232
  "otherItems": {
2233
+ "ta10Ref": "2.11",
2232
2234
  "items": {
2233
2235
  "required": [
2234
2236
  "isIncludedOrExcluded"
@@ -2245,7 +2247,7 @@
2245
2247
  {
2246
2248
  "properties": {
2247
2249
  "fittedOrFreestanding": {
2248
- "ta10Ref": "xxx",
2250
+ "ta10Ref": "2.11d",
2249
2251
  "discriminator": {
2250
2252
  "propertyName": "isFittedOrFreestanding"
2251
2253
  },
@@ -2292,7 +2294,7 @@
2292
2294
  "ta10Ref": "2.11b"
2293
2295
  },
2294
2296
  "fittedOrFreestanding": {
2295
- "ta10Ref": "xxx",
2297
+ "ta10Ref": "2.11d",
2296
2298
  "discriminator": {
2297
2299
  "propertyName": "isFittedOrFreestanding"
2298
2300
  },
@@ -3311,6 +3313,7 @@
3311
3313
  }
3312
3314
  },
3313
3315
  "otherRooms": {
3316
+ "ta10Ref": "4.8",
3314
3317
  "items": {
3315
3318
  "required": [
3316
3319
  "itemName",
@@ -3752,6 +3755,7 @@
3752
3755
  }
3753
3756
  },
3754
3757
  "otherRooms": {
3758
+ "ta10Ref": "5.8",
3755
3759
  "items": {
3756
3760
  "required": [
3757
3761
  "itemName",
@@ -4186,6 +4190,7 @@
4186
4190
  }
4187
4191
  },
4188
4192
  "otherRooms": {
4193
+ "ta10Ref": "5.19",
4189
4194
  "items": {
4190
4195
  "required": [
4191
4196
  "itemName",
@@ -4623,6 +4628,7 @@
4623
4628
  }
4624
4629
  },
4625
4630
  "otherRooms": {
4631
+ "ta10Ref": "6.8",
4626
4632
  "items": {
4627
4633
  "required": [
4628
4634
  "itemName",
@@ -5058,6 +5064,7 @@
5058
5064
  }
5059
5065
  },
5060
5066
  "otherRooms": {
5067
+ "ta10Ref": "7.8",
5061
5068
  "items": {
5062
5069
  "required": [
5063
5070
  "itemName",
@@ -5773,6 +5780,7 @@
5773
5780
  }
5774
5781
  },
5775
5782
  "otherItems": {
5783
+ "ta10Ref": "8.13",
5776
5784
  "items": {
5777
5785
  "required": [
5778
5786
  "itemName",
@@ -964,7 +964,46 @@
964
964
  "ta7Ref": "9.2"
965
965
  },
966
966
  "landlordConsentObtained": {
967
- "ta7Ref": "9.3"
967
+ "ta7Ref": "9.3",
968
+ "discriminator": {
969
+ "propertyName": "yesNo"
970
+ },
971
+ "oneOf": [
972
+ {
973
+ "properties": {
974
+ "yesNo": {
975
+ "enum": [
976
+ "No",
977
+ "Not known",
978
+ "Not required"
979
+ ]
980
+ }
981
+ }
982
+ },
983
+ {
984
+ "properties": {
985
+ "yesNo": {
986
+ "enum": [
987
+ "Yes"
988
+ ]
989
+ },
990
+ "attachments": {
991
+ "ta7Ref": "9.3.2"
992
+ }
993
+ },
994
+ "required": [
995
+ "attachments"
996
+ ]
997
+ }
998
+ ],
999
+ "required": [
1000
+ "yesNo"
1001
+ ],
1002
+ "properties": {
1003
+ "yesNo": {
1004
+ "ta7Ref": "9.3.1"
1005
+ }
1006
+ }
968
1007
  }
969
1008
  },
970
1009
  "required": [
@@ -1141,10 +1180,10 @@
1141
1180
  "title": "Relevant documents",
1142
1181
  "properties": {
1143
1182
  "lease": {
1144
- "ta7Ref": "3.1a1"
1183
+ "ta7Ref": "3.1a"
1145
1184
  },
1146
1185
  "deedsOfVariation": {
1147
- "ta7Ref": "3.1a2",
1186
+ "ta7Ref": "3.1b",
1148
1187
  "title": "Any supplemental deeds.",
1149
1188
  "enum": [
1150
1189
  "Attached",
@@ -1173,10 +1212,84 @@
1173
1212
  }
1174
1213
  },
1175
1214
  "noticeOfSale": {
1176
- "ta7Ref": "6.1"
1215
+ "ta7Ref": "6.1",
1216
+ "discriminator": {
1217
+ "propertyName": "yesNo"
1218
+ },
1219
+ "oneOf": [
1220
+ {
1221
+ "properties": {
1222
+ "yesNo": {
1223
+ "enum": [
1224
+ "No"
1225
+ ]
1226
+ }
1227
+ }
1228
+ },
1229
+ {
1230
+ "properties": {
1231
+ "yesNo": {
1232
+ "enum": [
1233
+ "Yes"
1234
+ ]
1235
+ },
1236
+ "attachments": {
1237
+ "ta7Ref": "6.1.2"
1238
+ }
1239
+ },
1240
+ "required": [
1241
+ "attachments"
1242
+ ]
1243
+ }
1244
+ ],
1245
+ "required": [
1246
+ "yesNo"
1247
+ ],
1248
+ "properties": {
1249
+ "yesNo": {
1250
+ "ta7Ref": "6.1.1"
1251
+ }
1252
+ }
1177
1253
  },
1178
1254
  "noticeOfBuildingCondition": {
1179
- "ta7Ref": "6.2"
1255
+ "ta7Ref": "6.2",
1256
+ "discriminator": {
1257
+ "propertyName": "yesNo"
1258
+ },
1259
+ "oneOf": [
1260
+ {
1261
+ "properties": {
1262
+ "yesNo": {
1263
+ "enum": [
1264
+ "No"
1265
+ ]
1266
+ }
1267
+ }
1268
+ },
1269
+ {
1270
+ "properties": {
1271
+ "yesNo": {
1272
+ "enum": [
1273
+ "Yes"
1274
+ ]
1275
+ },
1276
+ "attachments": {
1277
+ "ta7Ref": "6.2.2"
1278
+ }
1279
+ },
1280
+ "required": [
1281
+ "attachments"
1282
+ ]
1283
+ }
1284
+ ],
1285
+ "required": [
1286
+ "yesNo"
1287
+ ],
1288
+ "properties": {
1289
+ "yesNo": {
1290
+ "ta7Ref": "6.2.1"
1291
+ }
1292
+ }
1180
1293
  },
1181
1294
  "additionalRegulationsNotInLease": {
1182
1295
  "ta7Ref": "3.1b"
@@ -6354,14 +6354,49 @@
6354
6354
  "minLength": 1
6355
6355
  },
6356
6356
  "landlordConsentObtained": {
6357
- "title": "Was the landlord’s consent for the alterations obtained? If Yes, please supply a copy.",
6358
- "type": "string",
6359
- "enum": [
6360
- "No",
6361
- "Not known",
6362
- "Not required",
6363
- "Attached",
6364
- "To follow"
6357
+ "title": "Was the landlord’s consent for the alterations obtained?",
6358
+ "type": "object",
6359
+ "properties": {
6360
+ "yesNo": {
6361
+ "type": "string",
6362
+ "title": "",
6363
+ "enum": [
6364
+ "Yes",
6365
+ "No",
6366
+ "Not known",
6367
+ "Not required"
6368
+ ]
6369
+ }
6370
+ },
6371
+ "oneOf": [
6372
+ {
6373
+ "properties": {
6374
+ "yesNo": {
6375
+ "enum": [
6376
+ "No",
6377
+ "Not known",
6378
+ "Not required"
6379
+ ]
6380
+ }
6381
+ }
6382
+ },
6383
+ {
6384
+ "properties": {
6385
+ "yesNo": {
6386
+ "enum": [
6387
+ "Yes"
6388
+ ]
6389
+ },
6390
+ "attachments": {
6391
+ "title": "Please supply a copy.",
6392
+ "type": "string",
6393
+ "enum": [
6394
+ "Attached",
6395
+ "To follow"
6396
+ ]
6397
+ }
6398
+ }
6399
+ }
6365
6400
  ]
6366
6401
  }
6367
6402
  }
@@ -6816,25 +6851,89 @@
6816
6851
  }
6817
6852
  },
6818
6853
  "noticeOfSale": {
6819
- "title": "Has the seller received a notice that the landlord wants to sell the building? If Yes, please supply a copy.",
6820
- "type": "string",
6821
- "enum": [
6822
- "Yes",
6823
- "No",
6824
- "Attached",
6825
- "To follow",
6826
- "Lost"
6854
+ "title": "Has the seller received a notice that the landlord wants to sell the building?",
6855
+ "type": "object",
6856
+ "properties": {
6857
+ "yesNo": {
6858
+ "type": "string",
6859
+ "title": "",
6860
+ "enum": [
6861
+ "Yes",
6862
+ "No"
6863
+ ]
6864
+ }
6865
+ },
6866
+ "oneOf": [
6867
+ {
6868
+ "properties": {
6869
+ "yesNo": {
6870
+ "enum": [
6871
+ "No"
6872
+ ]
6873
+ }
6874
+ }
6875
+ },
6876
+ {
6877
+ "properties": {
6878
+ "yesNo": {
6879
+ "enum": [
6880
+ "Yes"
6881
+ ]
6882
+ },
6883
+ "attachments": {
6884
+ "title": "Please supply a copy.",
6885
+ "type": "string",
6886
+ "enum": [
6887
+ "Attached",
6888
+ "To follow",
6889
+ "Lost"
6890
+ ]
6891
+ }
6892
+ }
6893
+ }
6827
6894
  ]
6828
6895
  },
6829
6896
  "noticeOfBuildingCondition": {
6830
- "title": "Has the seller received any other notice about the building, its use, its condition or its repair and maintenance? If Yes, please supply a copy.",
6831
- "type": "string",
6832
- "enum": [
6833
- "Yes",
6834
- "No",
6835
- "Attached",
6836
- "To follow",
6837
- "Lost"
6897
+ "title": "Has the seller received any other notice about the building, its use, its condition or its repair and maintenance?",
6898
+ "type": "object",
6899
+ "properties": {
6900
+ "yesNo": {
6901
+ "type": "string",
6902
+ "title": "",
6903
+ "enum": [
6904
+ "Yes",
6905
+ "No"
6906
+ ]
6907
+ }
6908
+ },
6909
+ "oneOf": [
6910
+ {
6911
+ "properties": {
6912
+ "yesNo": {
6913
+ "enum": [
6914
+ "No"
6915
+ ]
6916
+ }
6917
+ }
6918
+ },
6919
+ {
6920
+ "properties": {
6921
+ "yesNo": {
6922
+ "enum": [
6923
+ "Yes"
6924
+ ]
6925
+ },
6926
+ "attachments": {
6927
+ "title": "Please supply a copy.",
6928
+ "type": "string",
6929
+ "enum": [
6930
+ "Attached",
6931
+ "To follow",
6932
+ "Lost"
6933
+ ]
6934
+ }
6935
+ }
6936
+ }
6838
6937
  ]
6839
6938
  },
6840
6939
  "managedAreasBuildingsInsurancePolicy": {
@@ -889,7 +889,10 @@
889
889
  "sellerAwareOfAlterations": {
890
890
  "yesNo": {},
891
891
  "details": {},
892
- "landlordConsentObtained": {}
892
+ "landlordConsentObtained": {
893
+ "yesNo": {},
894
+ "attachments": {}
895
+ }
893
896
  }
894
897
  },
895
898
  "enfranchisement": {
@@ -941,8 +944,14 @@
941
944
  "arrangedBySeller": {},
942
945
  "arrangedByLandlord": {}
943
946
  },
944
- "noticeOfSale": {},
945
- "noticeOfBuildingCondition": {},
947
+ "noticeOfSale": {
948
+ "yesNo": {},
949
+ "attachments": {}
950
+ },
951
+ "noticeOfBuildingCondition": {
952
+ "yesNo": {},
953
+ "attachments": {}
954
+ },
946
955
  "managedAreasBuildingsInsurancePolicy": {},
947
956
  "serviceChargeEstimatesCurrent": {},
948
957
  "serviceChargeEstimatesPrevious": {},
@@ -202,6 +202,26 @@ test("correctly gets a subschema validator for a TA6 overlay", () => {
202
202
  expect(isValid).toBe(true);
203
203
  });
204
204
 
205
+ test("correctly gets a subschema validator for a TA7 overlay", () => {
206
+ const path = "/propertyPack";
207
+ const data = jp.get(exampleTransaction, path);
208
+ const validator = getSubschemaValidator(path, exampleTransaction.$schema, [
209
+ "ta7ed3",
210
+ ]);
211
+ let isValid = validator(data);
212
+ expect(isValid).toBe(false);
213
+ });
214
+
215
+ test("correctly gets a subschema validator for a TA10 overlay", () => {
216
+ const path = "/propertyPack";
217
+ const data = jp.get(exampleTransaction, path);
218
+ const validator = getSubschemaValidator(path, exampleTransaction.$schema, [
219
+ "ta10ed3",
220
+ ]);
221
+ let isValid = validator(data);
222
+ expect(isValid).toBe(false);
223
+ });
224
+
205
225
  test("correctly gets a subschema validator for a TA6 overlay which validates", () => {
206
226
  const path =
207
227
  "/propertyPack/guaranteesWarrantiesAndIndemnityInsurances/subsidenceWork";