@pdtf/schemas 3.0.0-12 → 3.0.0-13
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 +1 -1
- package/src/examples/v3/exampleTransaction.json +6 -4
- package/src/schemas/v3/combined.json +72 -70
- package/src/schemas/v3/overlays/baspi.json +51 -43
- package/src/schemas/v3/overlays/nts.json +44 -39
- package/src/schemas/v3/overlays/piq.json +4 -4
- package/src/schemas/v3/overlays/rds.json +15 -29
- package/src/schemas/v3/overlays/ta6.json +42 -34
- package/src/schemas/v3/pdtf-transaction.json +51 -54
- package/src/schemas/v3/skeleton.json +8 -7
- package/src/tests/v3/transactionSchema.test.js +1 -1
package/package.json
CHANGED
|
@@ -466,9 +466,11 @@
|
|
|
466
466
|
"riskIndicator": "Yes",
|
|
467
467
|
"summary": "Likely to flood from surface water"
|
|
468
468
|
},
|
|
469
|
-
"
|
|
470
|
-
|
|
471
|
-
|
|
469
|
+
"historicalFlooding": {
|
|
470
|
+
"hasBeenFlooded": "Yes",
|
|
471
|
+
"details": "Minor basement flood",
|
|
472
|
+
"typeOfFlooding": ["Surface water"]
|
|
473
|
+
}
|
|
472
474
|
},
|
|
473
475
|
"radon": {
|
|
474
476
|
"radonTest": { "yesNo": "No" },
|
|
@@ -484,7 +486,7 @@
|
|
|
484
486
|
"riskIndicator": "No"
|
|
485
487
|
},
|
|
486
488
|
"otherEnvironmental": {
|
|
487
|
-
"
|
|
489
|
+
"riskIndicator": "No"
|
|
488
490
|
}
|
|
489
491
|
},
|
|
490
492
|
"otherIssues": {
|
|
@@ -519,14 +519,13 @@
|
|
|
519
519
|
},
|
|
520
520
|
"hasLift": {
|
|
521
521
|
"ntsRef": "B1.1.5",
|
|
522
|
-
"title": "
|
|
523
|
-
"description": "Is the property served by a lift?",
|
|
522
|
+
"title": "Is the property served by a lift?",
|
|
524
523
|
"type": "string",
|
|
525
524
|
"enum": ["Yes", "No"]
|
|
526
525
|
},
|
|
527
526
|
"overCommercialPremises": {
|
|
528
527
|
"ntsRef": "B1.1.6",
|
|
529
|
-
"title": "
|
|
528
|
+
"title": "Located over commercial premises?",
|
|
530
529
|
"type": "object",
|
|
531
530
|
"properties": {
|
|
532
531
|
"isLocatedOverCommercialPremises": {
|
|
@@ -682,15 +681,6 @@
|
|
|
682
681
|
"title": "Any additional description or clarification of the room dimensions",
|
|
683
682
|
"type": "string",
|
|
684
683
|
"minLength": 1
|
|
685
|
-
},
|
|
686
|
-
"photoUrls": {
|
|
687
|
-
"ntsRef": "B2.7",
|
|
688
|
-
"title": "The URLs of images which should be associated with this room",
|
|
689
|
-
"type": "array",
|
|
690
|
-
"items": {
|
|
691
|
-
"type": "string",
|
|
692
|
-
"format": "uri"
|
|
693
|
-
}
|
|
694
684
|
}
|
|
695
685
|
},
|
|
696
686
|
"ntsRequired": [
|
|
@@ -21349,9 +21339,9 @@
|
|
|
21349
21339
|
"ta6Ref": "7.1.0",
|
|
21350
21340
|
"title": "Flooding",
|
|
21351
21341
|
"type": "object",
|
|
21352
|
-
"baspiRequired": ["
|
|
21353
|
-
"ntsRequired": ["floodRisk", "
|
|
21354
|
-
"ta6Required": ["
|
|
21342
|
+
"baspiRequired": ["historicalFlooding"],
|
|
21343
|
+
"ntsRequired": ["floodRisk", "historicalFlooding"],
|
|
21344
|
+
"ta6Required": ["historicalFlooding"],
|
|
21355
21345
|
"properties": {
|
|
21356
21346
|
"floodRisk": {
|
|
21357
21347
|
"ntsRef": "C3.1.1.1",
|
|
@@ -21462,64 +21452,76 @@
|
|
|
21462
21452
|
}
|
|
21463
21453
|
]
|
|
21464
21454
|
},
|
|
21465
|
-
"
|
|
21455
|
+
"historicalFlooding": {
|
|
21466
21456
|
"ntsRef": "C3.1.1.2",
|
|
21467
21457
|
"baspiRef": "A11.1.2",
|
|
21468
21458
|
"ta6Ref": "7.1.1",
|
|
21469
|
-
"title": "
|
|
21470
|
-
"type": "
|
|
21471
|
-
"
|
|
21472
|
-
|
|
21473
|
-
|
|
21474
|
-
"discriminator": {
|
|
21475
|
-
"propertyName": "hasBeenFlooded"
|
|
21476
|
-
},
|
|
21477
|
-
"oneOf": [
|
|
21478
|
-
{
|
|
21479
|
-
"properties": {
|
|
21480
|
-
"hasBeenFlooded": {
|
|
21481
|
-
"enum": ["No"]
|
|
21482
|
-
}
|
|
21483
|
-
}
|
|
21484
|
-
},
|
|
21485
|
-
{
|
|
21459
|
+
"title": "Historical flooding",
|
|
21460
|
+
"type": "object",
|
|
21461
|
+
"baspiRequired": ["hasBeenFlooded"],
|
|
21462
|
+
"ntsRequired": ["hasBeenFlooded"],
|
|
21463
|
+
"ta6Required": ["hasBeenFlooded"],
|
|
21486
21464
|
"properties": {
|
|
21487
21465
|
"hasBeenFlooded": {
|
|
21488
|
-
"
|
|
21489
|
-
},
|
|
21490
|
-
"typeOfFlooding": {
|
|
21491
|
-
"ntsRef": "C3.1.1.3",
|
|
21492
|
-
"baspiRef": "A11.1.2.2",
|
|
21493
|
-
"rdsRef": "Sustainability/Environmental|Natural|Situational",
|
|
21494
|
-
"ta6Ref": "7.2",
|
|
21495
|
-
"title": "What type of flooding occurred?",
|
|
21496
|
-
"type": "array",
|
|
21497
|
-
"items": {
|
|
21498
|
-
"type": "string",
|
|
21499
|
-
"enum": [
|
|
21500
|
-
"Ground water",
|
|
21501
|
-
"Sewer",
|
|
21502
|
-
"Surface water",
|
|
21503
|
-
"Coastal flooding",
|
|
21504
|
-
"River flooding",
|
|
21505
|
-
"Other"
|
|
21506
|
-
]
|
|
21507
|
-
}
|
|
21508
|
-
},
|
|
21509
|
-
"details": {
|
|
21510
|
-
"ntsRef": "C3.1.1.4",
|
|
21466
|
+
"ntsRef": "C3.1.1.2.1",
|
|
21511
21467
|
"baspiRef": "A11.1.2.1",
|
|
21512
|
-
"ta6Ref": "7.1.
|
|
21513
|
-
"title": "
|
|
21468
|
+
"ta6Ref": "7.1.1.1",
|
|
21469
|
+
"title": "Has any part of the property (whether buildings or surrounding garden or land) ever been flooded?",
|
|
21514
21470
|
"type": "string",
|
|
21515
|
-
"
|
|
21471
|
+
"enum": ["Yes", "No"]
|
|
21516
21472
|
}
|
|
21517
21473
|
},
|
|
21518
|
-
"
|
|
21519
|
-
|
|
21520
|
-
|
|
21474
|
+
"discriminator": {
|
|
21475
|
+
"propertyName": "hasBeenFlooded"
|
|
21476
|
+
},
|
|
21477
|
+
"oneOf": [
|
|
21478
|
+
{
|
|
21479
|
+
"properties": {
|
|
21480
|
+
"hasBeenFlooded": {
|
|
21481
|
+
"enum": ["No"]
|
|
21482
|
+
}
|
|
21483
|
+
}
|
|
21484
|
+
},
|
|
21485
|
+
{
|
|
21486
|
+
"properties": {
|
|
21487
|
+
"hasBeenFlooded": {
|
|
21488
|
+
"enum": ["Yes"]
|
|
21489
|
+
},
|
|
21490
|
+
"typeOfFlooding": {
|
|
21491
|
+
"ntsRef": "C3.1.1.3",
|
|
21492
|
+
"baspiRef": "A11.1.2.2",
|
|
21493
|
+
"rdsRef": "Sustainability/Environmental|Natural|Situational",
|
|
21494
|
+
"ta6Ref": "7.2",
|
|
21495
|
+
"title": "What type of flooding occurred?",
|
|
21496
|
+
"type": "array",
|
|
21497
|
+
"items": {
|
|
21498
|
+
"type": "string",
|
|
21499
|
+
"enum": [
|
|
21500
|
+
"Ground water",
|
|
21501
|
+
"Sewer",
|
|
21502
|
+
"Surface water",
|
|
21503
|
+
"Coastal flooding",
|
|
21504
|
+
"River flooding",
|
|
21505
|
+
"Other"
|
|
21506
|
+
]
|
|
21507
|
+
}
|
|
21508
|
+
},
|
|
21509
|
+
"details": {
|
|
21510
|
+
"ntsRef": "C3.1.1.4",
|
|
21511
|
+
"baspiRef": "A11.1.2.1",
|
|
21512
|
+
"ta6Ref": "7.1.2",
|
|
21513
|
+
"title": "Please state when the flooding occurred and identify the parts that flooded",
|
|
21514
|
+
"type": "string",
|
|
21515
|
+
"minLength": 1
|
|
21516
|
+
}
|
|
21517
|
+
},
|
|
21518
|
+
"baspiRequired": ["typeOfFlooding", "details"],
|
|
21519
|
+
"ntsRequired": ["typeOfFlooding", "details"],
|
|
21520
|
+
"ta6Required": ["typeOfFlooding", "details"]
|
|
21521
|
+
}
|
|
21522
|
+
]
|
|
21521
21523
|
}
|
|
21522
|
-
|
|
21524
|
+
}
|
|
21523
21525
|
},
|
|
21524
21526
|
"radon": {
|
|
21525
21527
|
"baspiRef": "A11.1.3",
|
|
@@ -22524,7 +22526,7 @@
|
|
|
22524
22526
|
"title": "To your knowledge, have there been any other environmental issues that affect the property or garden (for example, these could include air pollution, mining, sink holes, quarrying or fracking etc)?",
|
|
22525
22527
|
"type": "object",
|
|
22526
22528
|
"properties": {
|
|
22527
|
-
"
|
|
22529
|
+
"riskIndicator": {
|
|
22528
22530
|
"piqRef": "A11.5.1",
|
|
22529
22531
|
"baspiRef": "A11.1.4.1",
|
|
22530
22532
|
"type": "string",
|
|
@@ -22532,31 +22534,31 @@
|
|
|
22532
22534
|
"enum": ["Yes", "No"]
|
|
22533
22535
|
}
|
|
22534
22536
|
},
|
|
22535
|
-
"baspiRequired": ["
|
|
22537
|
+
"baspiRequired": ["riskIndicator"],
|
|
22536
22538
|
"discriminator": {
|
|
22537
|
-
"propertyName": "
|
|
22539
|
+
"propertyName": "riskIndicator"
|
|
22538
22540
|
},
|
|
22539
22541
|
"oneOf": [
|
|
22540
22542
|
{
|
|
22541
22543
|
"properties": {
|
|
22542
|
-
"
|
|
22544
|
+
"riskIndicator": {
|
|
22543
22545
|
"enum": ["No", "Not known"]
|
|
22544
22546
|
}
|
|
22545
22547
|
}
|
|
22546
22548
|
},
|
|
22547
22549
|
{
|
|
22548
22550
|
"properties": {
|
|
22549
|
-
"
|
|
22551
|
+
"riskIndicator": {
|
|
22550
22552
|
"enum": ["Yes"]
|
|
22551
22553
|
},
|
|
22552
|
-
"
|
|
22554
|
+
"summary": {
|
|
22553
22555
|
"baspiRef": "A11.1.4.2",
|
|
22554
22556
|
"title": "Please provide details. For example the level of air pollution, location of fracking etc, and whether any action has been taken to prevent harm.",
|
|
22555
22557
|
"type": "string",
|
|
22556
22558
|
"minLength": 1
|
|
22557
22559
|
}
|
|
22558
22560
|
},
|
|
22559
|
-
"baspiRequired": ["
|
|
22561
|
+
"baspiRequired": ["summary"]
|
|
22560
22562
|
}
|
|
22561
22563
|
]
|
|
22562
22564
|
}
|
|
@@ -5477,41 +5477,8 @@
|
|
|
5477
5477
|
"properties": {
|
|
5478
5478
|
"flooding": {
|
|
5479
5479
|
"baspiRef": "A11.1.1",
|
|
5480
|
-
"discriminator": {
|
|
5481
|
-
"propertyName": "hasBeenFlooded"
|
|
5482
|
-
},
|
|
5483
|
-
"oneOf": [
|
|
5484
|
-
{
|
|
5485
|
-
"properties": {
|
|
5486
|
-
"hasBeenFlooded": {
|
|
5487
|
-
"enum": [
|
|
5488
|
-
"No"
|
|
5489
|
-
]
|
|
5490
|
-
}
|
|
5491
|
-
}
|
|
5492
|
-
},
|
|
5493
|
-
{
|
|
5494
|
-
"properties": {
|
|
5495
|
-
"hasBeenFlooded": {
|
|
5496
|
-
"enum": [
|
|
5497
|
-
"Yes"
|
|
5498
|
-
]
|
|
5499
|
-
},
|
|
5500
|
-
"typeOfFlooding": {
|
|
5501
|
-
"baspiRef": "A11.1.2.2"
|
|
5502
|
-
},
|
|
5503
|
-
"details": {
|
|
5504
|
-
"baspiRef": "A11.1.2.1"
|
|
5505
|
-
}
|
|
5506
|
-
},
|
|
5507
|
-
"required": [
|
|
5508
|
-
"typeOfFlooding",
|
|
5509
|
-
"details"
|
|
5510
|
-
]
|
|
5511
|
-
}
|
|
5512
|
-
],
|
|
5513
5480
|
"required": [
|
|
5514
|
-
"
|
|
5481
|
+
"historicalFlooding"
|
|
5515
5482
|
],
|
|
5516
5483
|
"properties": {
|
|
5517
5484
|
"floodRisk": {
|
|
@@ -5524,8 +5491,49 @@
|
|
|
5524
5491
|
}
|
|
5525
5492
|
}
|
|
5526
5493
|
},
|
|
5527
|
-
"
|
|
5528
|
-
"baspiRef": "A11.1.2"
|
|
5494
|
+
"historicalFlooding": {
|
|
5495
|
+
"baspiRef": "A11.1.2",
|
|
5496
|
+
"discriminator": {
|
|
5497
|
+
"propertyName": "hasBeenFlooded"
|
|
5498
|
+
},
|
|
5499
|
+
"oneOf": [
|
|
5500
|
+
{
|
|
5501
|
+
"properties": {
|
|
5502
|
+
"hasBeenFlooded": {
|
|
5503
|
+
"enum": [
|
|
5504
|
+
"No"
|
|
5505
|
+
]
|
|
5506
|
+
}
|
|
5507
|
+
}
|
|
5508
|
+
},
|
|
5509
|
+
{
|
|
5510
|
+
"properties": {
|
|
5511
|
+
"hasBeenFlooded": {
|
|
5512
|
+
"enum": [
|
|
5513
|
+
"Yes"
|
|
5514
|
+
]
|
|
5515
|
+
},
|
|
5516
|
+
"typeOfFlooding": {
|
|
5517
|
+
"baspiRef": "A11.1.2.2"
|
|
5518
|
+
},
|
|
5519
|
+
"details": {
|
|
5520
|
+
"baspiRef": "A11.1.2.1"
|
|
5521
|
+
}
|
|
5522
|
+
},
|
|
5523
|
+
"required": [
|
|
5524
|
+
"typeOfFlooding",
|
|
5525
|
+
"details"
|
|
5526
|
+
]
|
|
5527
|
+
}
|
|
5528
|
+
],
|
|
5529
|
+
"required": [
|
|
5530
|
+
"hasBeenFlooded"
|
|
5531
|
+
],
|
|
5532
|
+
"properties": {
|
|
5533
|
+
"hasBeenFlooded": {
|
|
5534
|
+
"baspiRef": "A11.1.2.1"
|
|
5535
|
+
}
|
|
5536
|
+
}
|
|
5529
5537
|
}
|
|
5530
5538
|
}
|
|
5531
5539
|
},
|
|
@@ -5596,12 +5604,12 @@
|
|
|
5596
5604
|
"otherEnvironmental": {
|
|
5597
5605
|
"baspiRef": "A11.1.4",
|
|
5598
5606
|
"discriminator": {
|
|
5599
|
-
"propertyName": "
|
|
5607
|
+
"propertyName": "riskIndicator"
|
|
5600
5608
|
},
|
|
5601
5609
|
"oneOf": [
|
|
5602
5610
|
{
|
|
5603
5611
|
"properties": {
|
|
5604
|
-
"
|
|
5612
|
+
"riskIndicator": {
|
|
5605
5613
|
"enum": [
|
|
5606
5614
|
"No",
|
|
5607
5615
|
"Not known"
|
|
@@ -5611,25 +5619,25 @@
|
|
|
5611
5619
|
},
|
|
5612
5620
|
{
|
|
5613
5621
|
"properties": {
|
|
5614
|
-
"
|
|
5622
|
+
"riskIndicator": {
|
|
5615
5623
|
"enum": [
|
|
5616
5624
|
"Yes"
|
|
5617
5625
|
]
|
|
5618
5626
|
},
|
|
5619
|
-
"
|
|
5627
|
+
"summary": {
|
|
5620
5628
|
"baspiRef": "A11.1.4.2"
|
|
5621
5629
|
}
|
|
5622
5630
|
},
|
|
5623
5631
|
"required": [
|
|
5624
|
-
"
|
|
5632
|
+
"summary"
|
|
5625
5633
|
]
|
|
5626
5634
|
}
|
|
5627
5635
|
],
|
|
5628
5636
|
"required": [
|
|
5629
|
-
"
|
|
5637
|
+
"riskIndicator"
|
|
5630
5638
|
],
|
|
5631
5639
|
"properties": {
|
|
5632
|
-
"
|
|
5640
|
+
"riskIndicator": {
|
|
5633
5641
|
"baspiRef": "A11.1.4.1"
|
|
5634
5642
|
}
|
|
5635
5643
|
}
|
|
@@ -209,9 +209,6 @@
|
|
|
209
209
|
},
|
|
210
210
|
"dimensionDetails": {
|
|
211
211
|
"ntsRef": "B2.6"
|
|
212
|
-
},
|
|
213
|
-
"photoUrls": {
|
|
214
|
-
"ntsRef": "B2.7"
|
|
215
212
|
}
|
|
216
213
|
}
|
|
217
214
|
}
|
|
@@ -1666,42 +1663,9 @@
|
|
|
1666
1663
|
"properties": {
|
|
1667
1664
|
"flooding": {
|
|
1668
1665
|
"ntsRef": "C3.1.1",
|
|
1669
|
-
"discriminator": {
|
|
1670
|
-
"propertyName": "hasBeenFlooded"
|
|
1671
|
-
},
|
|
1672
|
-
"oneOf": [
|
|
1673
|
-
{
|
|
1674
|
-
"properties": {
|
|
1675
|
-
"hasBeenFlooded": {
|
|
1676
|
-
"enum": [
|
|
1677
|
-
"No"
|
|
1678
|
-
]
|
|
1679
|
-
}
|
|
1680
|
-
}
|
|
1681
|
-
},
|
|
1682
|
-
{
|
|
1683
|
-
"properties": {
|
|
1684
|
-
"hasBeenFlooded": {
|
|
1685
|
-
"enum": [
|
|
1686
|
-
"Yes"
|
|
1687
|
-
]
|
|
1688
|
-
},
|
|
1689
|
-
"typeOfFlooding": {
|
|
1690
|
-
"ntsRef": "C3.1.1.3"
|
|
1691
|
-
},
|
|
1692
|
-
"details": {
|
|
1693
|
-
"ntsRef": "C3.1.1.4"
|
|
1694
|
-
}
|
|
1695
|
-
},
|
|
1696
|
-
"required": [
|
|
1697
|
-
"typeOfFlooding",
|
|
1698
|
-
"details"
|
|
1699
|
-
]
|
|
1700
|
-
}
|
|
1701
|
-
],
|
|
1702
1666
|
"required": [
|
|
1703
1667
|
"floodRisk",
|
|
1704
|
-
"
|
|
1668
|
+
"historicalFlooding"
|
|
1705
1669
|
],
|
|
1706
1670
|
"properties": {
|
|
1707
1671
|
"floodRisk": {
|
|
@@ -1745,8 +1709,49 @@
|
|
|
1745
1709
|
}
|
|
1746
1710
|
}
|
|
1747
1711
|
},
|
|
1748
|
-
"
|
|
1749
|
-
"ntsRef": "C3.1.1.2"
|
|
1712
|
+
"historicalFlooding": {
|
|
1713
|
+
"ntsRef": "C3.1.1.2",
|
|
1714
|
+
"discriminator": {
|
|
1715
|
+
"propertyName": "hasBeenFlooded"
|
|
1716
|
+
},
|
|
1717
|
+
"oneOf": [
|
|
1718
|
+
{
|
|
1719
|
+
"properties": {
|
|
1720
|
+
"hasBeenFlooded": {
|
|
1721
|
+
"enum": [
|
|
1722
|
+
"No"
|
|
1723
|
+
]
|
|
1724
|
+
}
|
|
1725
|
+
}
|
|
1726
|
+
},
|
|
1727
|
+
{
|
|
1728
|
+
"properties": {
|
|
1729
|
+
"hasBeenFlooded": {
|
|
1730
|
+
"enum": [
|
|
1731
|
+
"Yes"
|
|
1732
|
+
]
|
|
1733
|
+
},
|
|
1734
|
+
"typeOfFlooding": {
|
|
1735
|
+
"ntsRef": "C3.1.1.3"
|
|
1736
|
+
},
|
|
1737
|
+
"details": {
|
|
1738
|
+
"ntsRef": "C3.1.1.4"
|
|
1739
|
+
}
|
|
1740
|
+
},
|
|
1741
|
+
"required": [
|
|
1742
|
+
"typeOfFlooding",
|
|
1743
|
+
"details"
|
|
1744
|
+
]
|
|
1745
|
+
}
|
|
1746
|
+
],
|
|
1747
|
+
"required": [
|
|
1748
|
+
"hasBeenFlooded"
|
|
1749
|
+
],
|
|
1750
|
+
"properties": {
|
|
1751
|
+
"hasBeenFlooded": {
|
|
1752
|
+
"ntsRef": "C3.1.1.2.1"
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1750
1755
|
}
|
|
1751
1756
|
}
|
|
1752
1757
|
},
|
|
@@ -2310,12 +2310,12 @@
|
|
|
2310
2310
|
"otherEnvironmental": {
|
|
2311
2311
|
"piqRef": "A11.5",
|
|
2312
2312
|
"discriminator": {
|
|
2313
|
-
"propertyName": "
|
|
2313
|
+
"propertyName": "riskIndicator"
|
|
2314
2314
|
},
|
|
2315
2315
|
"oneOf": [
|
|
2316
2316
|
{
|
|
2317
2317
|
"properties": {
|
|
2318
|
-
"
|
|
2318
|
+
"riskIndicator": {
|
|
2319
2319
|
"enum": [
|
|
2320
2320
|
"No",
|
|
2321
2321
|
"Not known"
|
|
@@ -2325,7 +2325,7 @@
|
|
|
2325
2325
|
},
|
|
2326
2326
|
{
|
|
2327
2327
|
"properties": {
|
|
2328
|
-
"
|
|
2328
|
+
"riskIndicator": {
|
|
2329
2329
|
"enum": [
|
|
2330
2330
|
"Yes"
|
|
2331
2331
|
]
|
|
@@ -2334,7 +2334,7 @@
|
|
|
2334
2334
|
}
|
|
2335
2335
|
],
|
|
2336
2336
|
"properties": {
|
|
2337
|
-
"
|
|
2337
|
+
"riskIndicator": {
|
|
2338
2338
|
"piqRef": "A11.5.1"
|
|
2339
2339
|
}
|
|
2340
2340
|
}
|
|
@@ -2450,32 +2450,6 @@
|
|
|
2450
2450
|
"properties": {
|
|
2451
2451
|
"flooding": {
|
|
2452
2452
|
"rdsRef": "Sustainability/Environmental|Natural|Situational",
|
|
2453
|
-
"discriminator": {
|
|
2454
|
-
"propertyName": "hasBeenFlooded"
|
|
2455
|
-
},
|
|
2456
|
-
"oneOf": [
|
|
2457
|
-
{
|
|
2458
|
-
"properties": {
|
|
2459
|
-
"hasBeenFlooded": {
|
|
2460
|
-
"enum": [
|
|
2461
|
-
"No"
|
|
2462
|
-
]
|
|
2463
|
-
}
|
|
2464
|
-
}
|
|
2465
|
-
},
|
|
2466
|
-
{
|
|
2467
|
-
"properties": {
|
|
2468
|
-
"hasBeenFlooded": {
|
|
2469
|
-
"enum": [
|
|
2470
|
-
"Yes"
|
|
2471
|
-
]
|
|
2472
|
-
},
|
|
2473
|
-
"typeOfFlooding": {
|
|
2474
|
-
"rdsRef": "Sustainability/Environmental|Natural|Situational"
|
|
2475
|
-
}
|
|
2476
|
-
}
|
|
2477
|
-
}
|
|
2478
|
-
],
|
|
2479
2453
|
"properties": {
|
|
2480
2454
|
"floodRisk": {
|
|
2481
2455
|
"rdsRef": "Sustainability/Environmental|Natural|Situational",
|
|
@@ -2502,6 +2476,18 @@
|
|
|
2502
2476
|
}
|
|
2503
2477
|
}
|
|
2504
2478
|
]
|
|
2479
|
+
},
|
|
2480
|
+
"historicalFlooding": {
|
|
2481
|
+
"oneOf": [
|
|
2482
|
+
null,
|
|
2483
|
+
{
|
|
2484
|
+
"properties": {
|
|
2485
|
+
"typeOfFlooding": {
|
|
2486
|
+
"rdsRef": "Sustainability/Environmental|Natural|Situational"
|
|
2487
|
+
}
|
|
2488
|
+
}
|
|
2489
|
+
}
|
|
2490
|
+
]
|
|
2505
2491
|
}
|
|
2506
2492
|
}
|
|
2507
2493
|
},
|
|
@@ -2612,12 +2598,12 @@
|
|
|
2612
2598
|
"otherEnvironmental": {
|
|
2613
2599
|
"rdsRef": "Sustainability/Environmental|Natural|Situational",
|
|
2614
2600
|
"discriminator": {
|
|
2615
|
-
"propertyName": "
|
|
2601
|
+
"propertyName": "riskIndicator"
|
|
2616
2602
|
},
|
|
2617
2603
|
"oneOf": [
|
|
2618
2604
|
{
|
|
2619
2605
|
"properties": {
|
|
2620
|
-
"
|
|
2606
|
+
"riskIndicator": {
|
|
2621
2607
|
"enum": [
|
|
2622
2608
|
"No",
|
|
2623
2609
|
"Not known"
|
|
@@ -2627,7 +2613,7 @@
|
|
|
2627
2613
|
},
|
|
2628
2614
|
{
|
|
2629
2615
|
"properties": {
|
|
2630
|
-
"
|
|
2616
|
+
"riskIndicator": {
|
|
2631
2617
|
"enum": [
|
|
2632
2618
|
"Yes"
|
|
2633
2619
|
]
|
|
@@ -2884,45 +2884,53 @@
|
|
|
2884
2884
|
"properties": {
|
|
2885
2885
|
"flooding": {
|
|
2886
2886
|
"ta6Ref": "7.1.0",
|
|
2887
|
-
"
|
|
2888
|
-
"
|
|
2889
|
-
|
|
2890
|
-
"
|
|
2891
|
-
{
|
|
2892
|
-
"
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2887
|
+
"required": [
|
|
2888
|
+
"historicalFlooding"
|
|
2889
|
+
],
|
|
2890
|
+
"properties": {
|
|
2891
|
+
"historicalFlooding": {
|
|
2892
|
+
"ta6Ref": "7.1.1",
|
|
2893
|
+
"discriminator": {
|
|
2894
|
+
"propertyName": "hasBeenFlooded"
|
|
2895
|
+
},
|
|
2896
|
+
"oneOf": [
|
|
2897
|
+
{
|
|
2898
|
+
"properties": {
|
|
2899
|
+
"hasBeenFlooded": {
|
|
2900
|
+
"enum": [
|
|
2901
|
+
"No"
|
|
2902
|
+
]
|
|
2903
|
+
}
|
|
2904
|
+
}
|
|
2905
|
+
},
|
|
2906
|
+
{
|
|
2907
|
+
"properties": {
|
|
2908
|
+
"hasBeenFlooded": {
|
|
2909
|
+
"enum": [
|
|
2910
|
+
"Yes"
|
|
2911
|
+
]
|
|
2912
|
+
},
|
|
2913
|
+
"typeOfFlooding": {
|
|
2914
|
+
"ta6Ref": "7.2"
|
|
2915
|
+
},
|
|
2916
|
+
"details": {
|
|
2917
|
+
"ta6Ref": "7.1.2"
|
|
2918
|
+
}
|
|
2919
|
+
},
|
|
2920
|
+
"required": [
|
|
2921
|
+
"typeOfFlooding",
|
|
2922
|
+
"details"
|
|
2896
2923
|
]
|
|
2897
2924
|
}
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2925
|
+
],
|
|
2926
|
+
"required": [
|
|
2927
|
+
"hasBeenFlooded"
|
|
2928
|
+
],
|
|
2901
2929
|
"properties": {
|
|
2902
2930
|
"hasBeenFlooded": {
|
|
2903
|
-
"
|
|
2904
|
-
"Yes"
|
|
2905
|
-
]
|
|
2906
|
-
},
|
|
2907
|
-
"typeOfFlooding": {
|
|
2908
|
-
"ta6Ref": "7.2"
|
|
2909
|
-
},
|
|
2910
|
-
"details": {
|
|
2911
|
-
"ta6Ref": "7.1.2"
|
|
2931
|
+
"ta6Ref": "7.1.1.1"
|
|
2912
2932
|
}
|
|
2913
|
-
}
|
|
2914
|
-
"required": [
|
|
2915
|
-
"typeOfFlooding",
|
|
2916
|
-
"details"
|
|
2917
|
-
]
|
|
2918
|
-
}
|
|
2919
|
-
],
|
|
2920
|
-
"required": [
|
|
2921
|
-
"hasBeenFlooded"
|
|
2922
|
-
],
|
|
2923
|
-
"properties": {
|
|
2924
|
-
"hasBeenFlooded": {
|
|
2925
|
-
"ta6Ref": "7.1.1"
|
|
2933
|
+
}
|
|
2926
2934
|
}
|
|
2927
2935
|
}
|
|
2928
2936
|
},
|
|
@@ -409,8 +409,7 @@
|
|
|
409
409
|
"type": "integer"
|
|
410
410
|
},
|
|
411
411
|
"hasLift": {
|
|
412
|
-
"title": "
|
|
413
|
-
"description": "Is the property served by a lift?",
|
|
412
|
+
"title": "Is the property served by a lift?",
|
|
414
413
|
"type": "string",
|
|
415
414
|
"enum": [
|
|
416
415
|
"Yes",
|
|
@@ -418,7 +417,7 @@
|
|
|
418
417
|
]
|
|
419
418
|
},
|
|
420
419
|
"overCommercialPremises": {
|
|
421
|
-
"title": "
|
|
420
|
+
"title": "Located over commercial premises?",
|
|
422
421
|
"type": "object",
|
|
423
422
|
"properties": {
|
|
424
423
|
"isLocatedOverCommercialPremises": {
|
|
@@ -571,14 +570,6 @@
|
|
|
571
570
|
"title": "Any additional description or clarification of the room dimensions",
|
|
572
571
|
"type": "string",
|
|
573
572
|
"minLength": 1
|
|
574
|
-
},
|
|
575
|
-
"photoUrls": {
|
|
576
|
-
"title": "The URLs of images which should be associated with this room",
|
|
577
|
-
"type": "array",
|
|
578
|
-
"items": {
|
|
579
|
-
"type": "string",
|
|
580
|
-
"format": "uri"
|
|
581
|
-
}
|
|
582
573
|
}
|
|
583
574
|
}
|
|
584
575
|
}
|
|
@@ -18628,55 +18619,61 @@
|
|
|
18628
18619
|
}
|
|
18629
18620
|
]
|
|
18630
18621
|
},
|
|
18631
|
-
"
|
|
18632
|
-
"title": "
|
|
18633
|
-
"type": "
|
|
18634
|
-
"enum": [
|
|
18635
|
-
"Yes",
|
|
18636
|
-
"No"
|
|
18637
|
-
]
|
|
18638
|
-
}
|
|
18639
|
-
},
|
|
18640
|
-
"oneOf": [
|
|
18641
|
-
{
|
|
18622
|
+
"historicalFlooding": {
|
|
18623
|
+
"title": "Historical flooding",
|
|
18624
|
+
"type": "object",
|
|
18642
18625
|
"properties": {
|
|
18643
18626
|
"hasBeenFlooded": {
|
|
18627
|
+
"title": "Has any part of the property (whether buildings or surrounding garden or land) ever been flooded?",
|
|
18628
|
+
"type": "string",
|
|
18644
18629
|
"enum": [
|
|
18630
|
+
"Yes",
|
|
18645
18631
|
"No"
|
|
18646
18632
|
]
|
|
18647
18633
|
}
|
|
18648
|
-
}
|
|
18649
|
-
|
|
18650
|
-
|
|
18651
|
-
|
|
18652
|
-
|
|
18653
|
-
|
|
18654
|
-
|
|
18655
|
-
|
|
18656
|
-
|
|
18657
|
-
"typeOfFlooding": {
|
|
18658
|
-
"title": "What type of flooding occurred?",
|
|
18659
|
-
"type": "array",
|
|
18660
|
-
"items": {
|
|
18661
|
-
"type": "string",
|
|
18662
|
-
"enum": [
|
|
18663
|
-
"Ground water",
|
|
18664
|
-
"Sewer",
|
|
18665
|
-
"Surface water",
|
|
18666
|
-
"Coastal flooding",
|
|
18667
|
-
"River flooding",
|
|
18668
|
-
"Other"
|
|
18669
|
-
]
|
|
18634
|
+
},
|
|
18635
|
+
"oneOf": [
|
|
18636
|
+
{
|
|
18637
|
+
"properties": {
|
|
18638
|
+
"hasBeenFlooded": {
|
|
18639
|
+
"enum": [
|
|
18640
|
+
"No"
|
|
18641
|
+
]
|
|
18642
|
+
}
|
|
18670
18643
|
}
|
|
18671
18644
|
},
|
|
18672
|
-
|
|
18673
|
-
"
|
|
18674
|
-
|
|
18675
|
-
|
|
18645
|
+
{
|
|
18646
|
+
"properties": {
|
|
18647
|
+
"hasBeenFlooded": {
|
|
18648
|
+
"enum": [
|
|
18649
|
+
"Yes"
|
|
18650
|
+
]
|
|
18651
|
+
},
|
|
18652
|
+
"typeOfFlooding": {
|
|
18653
|
+
"title": "What type of flooding occurred?",
|
|
18654
|
+
"type": "array",
|
|
18655
|
+
"items": {
|
|
18656
|
+
"type": "string",
|
|
18657
|
+
"enum": [
|
|
18658
|
+
"Ground water",
|
|
18659
|
+
"Sewer",
|
|
18660
|
+
"Surface water",
|
|
18661
|
+
"Coastal flooding",
|
|
18662
|
+
"River flooding",
|
|
18663
|
+
"Other"
|
|
18664
|
+
]
|
|
18665
|
+
}
|
|
18666
|
+
},
|
|
18667
|
+
"details": {
|
|
18668
|
+
"title": "Please state when the flooding occurred and identify the parts that flooded",
|
|
18669
|
+
"type": "string",
|
|
18670
|
+
"minLength": 1
|
|
18671
|
+
}
|
|
18672
|
+
}
|
|
18676
18673
|
}
|
|
18677
|
-
|
|
18674
|
+
]
|
|
18678
18675
|
}
|
|
18679
|
-
|
|
18676
|
+
}
|
|
18680
18677
|
},
|
|
18681
18678
|
"radon": {
|
|
18682
18679
|
"title": "Radon",
|
|
@@ -19821,7 +19818,7 @@
|
|
|
19821
19818
|
"title": "To your knowledge, have there been any other environmental issues that affect the property or garden (for example, these could include air pollution, mining, sink holes, quarrying or fracking etc)?",
|
|
19822
19819
|
"type": "object",
|
|
19823
19820
|
"properties": {
|
|
19824
|
-
"
|
|
19821
|
+
"riskIndicator": {
|
|
19825
19822
|
"type": "string",
|
|
19826
19823
|
"title": "",
|
|
19827
19824
|
"enum": [
|
|
@@ -19833,7 +19830,7 @@
|
|
|
19833
19830
|
"oneOf": [
|
|
19834
19831
|
{
|
|
19835
19832
|
"properties": {
|
|
19836
|
-
"
|
|
19833
|
+
"riskIndicator": {
|
|
19837
19834
|
"enum": [
|
|
19838
19835
|
"No",
|
|
19839
19836
|
"Not known"
|
|
@@ -19843,12 +19840,12 @@
|
|
|
19843
19840
|
},
|
|
19844
19841
|
{
|
|
19845
19842
|
"properties": {
|
|
19846
|
-
"
|
|
19843
|
+
"riskIndicator": {
|
|
19847
19844
|
"enum": [
|
|
19848
19845
|
"Yes"
|
|
19849
19846
|
]
|
|
19850
19847
|
},
|
|
19851
|
-
"
|
|
19848
|
+
"summary": {
|
|
19852
19849
|
"title": "Please provide details. For example the level of air pollution, location of fracking etc, and whether any action has been taken to prevent harm.",
|
|
19853
19850
|
"type": "string",
|
|
19854
19851
|
"minLength": 1
|
|
@@ -95,8 +95,7 @@
|
|
|
95
95
|
"length": {},
|
|
96
96
|
"width": {},
|
|
97
97
|
"units": {},
|
|
98
|
-
"dimensionDetails": {}
|
|
99
|
-
"photoUrls": {}
|
|
98
|
+
"dimensionDetails": {}
|
|
100
99
|
}
|
|
101
100
|
}
|
|
102
101
|
},
|
|
@@ -2243,9 +2242,11 @@
|
|
|
2243
2242
|
"datasetAttribution": {}
|
|
2244
2243
|
}
|
|
2245
2244
|
},
|
|
2246
|
-
"
|
|
2247
|
-
|
|
2248
|
-
|
|
2245
|
+
"historicalFlooding": {
|
|
2246
|
+
"hasBeenFlooded": {},
|
|
2247
|
+
"typeOfFlooding": {},
|
|
2248
|
+
"details": {}
|
|
2249
|
+
}
|
|
2249
2250
|
},
|
|
2250
2251
|
"radon": {
|
|
2251
2252
|
"radonRisk": {
|
|
@@ -2440,8 +2441,8 @@
|
|
|
2440
2441
|
}
|
|
2441
2442
|
},
|
|
2442
2443
|
"otherEnvironmental": {
|
|
2443
|
-
"
|
|
2444
|
-
"
|
|
2444
|
+
"riskIndicator": {},
|
|
2445
|
+
"summary": {}
|
|
2445
2446
|
}
|
|
2446
2447
|
},
|
|
2447
2448
|
"otherIssues": {
|
|
@@ -148,7 +148,7 @@ test("correctly gets yet, yet another subschema through a dependency", () => {
|
|
|
148
148
|
|
|
149
149
|
test("correctly gets yet, yet, yet another subschema through a second item dependency", () => {
|
|
150
150
|
const subschema = getSubschema(
|
|
151
|
-
"/propertyPack/materialFacts/environmentalIssues/flooding/typeOfFlooding"
|
|
151
|
+
"/propertyPack/materialFacts/environmentalIssues/flooding/historicalFlooding/typeOfFlooding"
|
|
152
152
|
);
|
|
153
153
|
expect(subschema.type).toBe("array");
|
|
154
154
|
});
|