@pdtf/schemas 3.0.0-10 → 3.0.0-12

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.
@@ -49,7 +49,8 @@
49
49
  "buildInformation": {
50
50
  "ntsRef": "B1.1",
51
51
  "required": [
52
- "building"
52
+ "building",
53
+ "roomDimensions"
53
54
  ],
54
55
  "properties": {
55
56
  "building": {
@@ -80,14 +81,8 @@
80
81
  "House",
81
82
  "Bungalow"
82
83
  ]
83
- },
84
- "builtForm": {
85
- "ntsRef": "B1.1.2"
86
84
  }
87
- },
88
- "required": [
89
- "builtForm"
90
- ]
85
+ }
91
86
  },
92
87
  {
93
88
  "properties": {
@@ -97,9 +92,6 @@
97
92
  "Flat"
98
93
  ]
99
94
  },
100
- "builtForm": {
101
- "ntsRef": "B1.1.2"
102
- },
103
95
  "numberOfFloors": {
104
96
  "ntsRef": "B1.1.3"
105
97
  },
@@ -148,7 +140,6 @@
148
140
  }
149
141
  },
150
142
  "required": [
151
- "builtForm",
152
143
  "numberOfFloors",
153
144
  "entranceFloor",
154
145
  "hasLift",
@@ -157,39 +148,86 @@
157
148
  }
158
149
  ],
159
150
  "required": [
151
+ "builtForm",
160
152
  "propertyType"
161
153
  ],
162
154
  "properties": {
155
+ "builtForm": {
156
+ "ntsRef": "B1.1.2"
157
+ },
163
158
  "propertyType": {
164
159
  "ntsRef": "B1.1.1.1"
165
160
  }
166
161
  }
167
162
  },
168
- "rooms": {
163
+ "roomDimensions": {
169
164
  "ntsRef": "B2",
170
- "items": {
171
- "properties": {
172
- "roomName": {
173
- "ntsRef": "B2.1"
174
- },
175
- "description": {
176
- "ntsRef": "B2.2"
177
- },
178
- "length": {
179
- "ntsRef": "B2.3"
180
- },
181
- "width": {
182
- "ntsRef": "B2.4"
183
- },
184
- "units": {
185
- "ntsRef": "B2.5"
186
- },
187
- "dimensionDetails": {
188
- "ntsRef": "B2.6"
189
- },
190
- "photoUrls": {
191
- "ntsRef": "B2.7"
165
+ "discriminator": {
166
+ "propertyName": "hasFloorplan"
167
+ },
168
+ "oneOf": [
169
+ {
170
+ "properties": {
171
+ "hasFloorplan": {
172
+ "enum": [
173
+ "Yes"
174
+ ]
175
+ }
192
176
  }
177
+ },
178
+ {
179
+ "properties": {
180
+ "hasFloorplan": {
181
+ "enum": [
182
+ "No"
183
+ ]
184
+ },
185
+ "rooms": {
186
+ "ntsRef": "B2.2",
187
+ "items": {
188
+ "required": [
189
+ "roomName",
190
+ "length",
191
+ "width",
192
+ "units"
193
+ ],
194
+ "properties": {
195
+ "roomName": {
196
+ "ntsRef": "B2.2.1"
197
+ },
198
+ "description": {
199
+ "ntsRef": "B2.2.2"
200
+ },
201
+ "length": {
202
+ "ntsRef": "B2.2.3"
203
+ },
204
+ "width": {
205
+ "ntsRef": "B2.2.4"
206
+ },
207
+ "units": {
208
+ "ntsRef": "B2.2.5"
209
+ },
210
+ "dimensionDetails": {
211
+ "ntsRef": "B2.6"
212
+ },
213
+ "photoUrls": {
214
+ "ntsRef": "B2.7"
215
+ }
216
+ }
217
+ }
218
+ }
219
+ },
220
+ "required": [
221
+ "rooms"
222
+ ]
223
+ }
224
+ ],
225
+ "required": [
226
+ "hasFloorplan"
227
+ ],
228
+ "properties": {
229
+ "hasFloorplan": {
230
+ "ntsRef": "B2.1"
193
231
  }
194
232
  }
195
233
  }
@@ -1361,6 +1399,15 @@
1361
1399
  }
1362
1400
  }
1363
1401
  },
1402
+ {
1403
+ "properties": {
1404
+ "yesNo": {
1405
+ "enum": [
1406
+ "Not known"
1407
+ ]
1408
+ }
1409
+ }
1410
+ },
1364
1411
  {
1365
1412
  "properties": {
1366
1413
  "yesNo": {
@@ -1374,166 +1421,62 @@
1374
1421
  "properties": {
1375
1422
  "yesNo": {
1376
1423
  "enum": [
1377
- "No",
1378
- "Not known"
1424
+ "No"
1379
1425
  ]
1380
1426
  },
1381
- "sustainableDrainageSystem": {
1427
+ "offMainsDrainageSystem": {
1382
1428
  "ntsRef": "A3.3.3",
1383
1429
  "discriminator": {
1384
- "propertyName": "yesNo"
1385
- },
1386
- "oneOf": [
1387
- {
1388
- "properties": {
1389
- "yesNo": {
1390
- "enum": [
1391
- "No"
1392
- ]
1393
- }
1394
- }
1395
- },
1396
- {
1397
- "properties": {
1398
- "yesNo": {
1399
- "enum": [
1400
- "Yes"
1401
- ]
1402
- }
1403
- }
1404
- },
1405
- {
1406
- "properties": {
1407
- "yesNo": {
1408
- "enum": [
1409
- "To be connected"
1410
- ]
1411
- }
1412
- }
1413
- }
1414
- ],
1415
- "required": [
1416
- "yesNo"
1417
- ],
1418
- "properties": {
1419
- "yesNo": {
1420
- "ntsRef": "A3.3.3.1",
1421
- "enum": [
1422
- "Yes",
1423
- "No"
1424
- ]
1425
- }
1426
- }
1427
- },
1428
- "septicTank": {
1429
- "ntsRef": "A3.3.4",
1430
- "discriminator": {
1431
- "propertyName": "yesNo"
1430
+ "propertyName": "offMainsDrainageSystemType"
1432
1431
  },
1433
1432
  "oneOf": [
1434
1433
  {
1435
1434
  "properties": {
1436
- "yesNo": {
1435
+ "offMainsDrainageSystemType": {
1437
1436
  "enum": [
1438
- "No"
1437
+ "Sustainable Drainage System"
1439
1438
  ]
1440
1439
  }
1441
1440
  }
1442
1441
  },
1443
1442
  {
1444
1443
  "properties": {
1445
- "yesNo": {
1446
- "enum": [
1447
- "Yes"
1448
- ]
1449
- }
1450
- }
1451
- }
1452
- ],
1453
- "required": [
1454
- "yesNo"
1455
- ],
1456
- "properties": {
1457
- "yesNo": {
1458
- "ntsRef": "A3.3.4.1"
1459
- }
1460
- }
1461
- },
1462
- "cesspit": {
1463
- "ntsRef": "A3.3.5",
1464
- "discriminator": {
1465
- "propertyName": "yesNo"
1466
- },
1467
- "oneOf": [
1468
- {
1469
- "properties": {
1470
- "yesNo": {
1444
+ "offMainsDrainageSystemType": {
1471
1445
  "enum": [
1472
- "No"
1446
+ "Septic tank"
1473
1447
  ]
1474
1448
  }
1475
1449
  }
1476
1450
  },
1477
1451
  {
1478
1452
  "properties": {
1479
- "yesNo": {
1453
+ "offMainsDrainageSystemType": {
1480
1454
  "enum": [
1481
- "Yes"
1482
- ]
1483
- }
1484
- }
1485
- }
1486
- ],
1487
- "required": [
1488
- "yesNo"
1489
- ],
1490
- "properties": {
1491
- "yesNo": {
1492
- "ntsRef": "A3.3.5.1"
1493
- }
1494
- }
1495
- },
1496
- "sewerageTreatmentPlant": {
1497
- "ntsRef": "A3.3.6",
1498
- "discriminator": {
1499
- "propertyName": "yesNo"
1500
- },
1501
- "oneOf": [
1502
- {
1503
- "properties": {
1504
- "yesNo": {
1505
- "enum": [
1506
- "No"
1455
+ "Cesspit"
1507
1456
  ]
1508
1457
  }
1509
1458
  }
1510
1459
  },
1511
1460
  {
1512
1461
  "properties": {
1513
- "yesNo": {
1462
+ "offMainsDrainageSystemType": {
1514
1463
  "enum": [
1515
- "Yes"
1464
+ "Sewerage treatment plant"
1516
1465
  ]
1517
1466
  }
1518
1467
  }
1519
1468
  }
1520
1469
  ],
1521
1470
  "required": [
1522
- "yesNo"
1471
+ "offMainsDrainageSystemType"
1523
1472
  ],
1524
1473
  "properties": {
1525
- "yesNo": {
1526
- "ntsRef": "A3.3.6.1"
1474
+ "offMainsDrainageSystemType": {
1475
+ "ntsRef": "A3.3.3.1"
1527
1476
  }
1528
1477
  }
1529
1478
  }
1530
- },
1531
- "required": [
1532
- "sustainableDrainageSystem",
1533
- "septicTank",
1534
- "cesspit",
1535
- "sewerageTreatmentPlant"
1536
- ]
1479
+ }
1537
1480
  }
1538
1481
  ],
1539
1482
  "required": [
@@ -1701,6 +1644,7 @@
1701
1644
  "required": [
1702
1645
  "yesNo"
1703
1646
  ],
1647
+ "title": "Is there a public right of way through and/or across your house, buildings or land?",
1704
1648
  "properties": {
1705
1649
  "yesNo": {
1706
1650
  "ntsRef": "C2.2.1.1"
@@ -1463,167 +1463,105 @@
1463
1463
  "properties": {
1464
1464
  "mainsFoulDrainage": {
1465
1465
  "oneOf": [
1466
+ null,
1466
1467
  null,
1467
1468
  null,
1468
1469
  {
1469
1470
  "properties": {
1470
- "septicTank": {
1471
- "piqRef": "A7.1.23",
1472
- "discriminator": {
1473
- "propertyName": "yesNo"
1474
- },
1475
- "oneOf": [
1476
- {
1477
- "properties": {
1478
- "yesNo": {
1479
- "enum": [
1480
- "No"
1481
- ]
1482
- }
1483
- }
1484
- },
1485
- {
1486
- "properties": {
1487
- "yesNo": {
1488
- "enum": [
1489
- "Yes"
1490
- ]
1471
+ "offMainsDrainageSystem": {
1472
+ "properties": {
1473
+ "otherConnectedProperties": {
1474
+ "piqRef": "A7.1.29",
1475
+ "discriminator": {
1476
+ "propertyName": "yesNo"
1477
+ },
1478
+ "oneOf": [
1479
+ {
1480
+ "properties": {
1481
+ "yesNo": {
1482
+ "enum": [
1483
+ "No"
1484
+ ]
1485
+ }
1486
+ }
1491
1487
  },
1492
- "dateLastEmptied": {
1493
- "piqRef": "A7.1.24"
1494
- }
1495
- }
1496
- }
1497
- ]
1498
- },
1499
- "cesspit": {
1500
- "piqRef": "A7.1.25",
1501
- "discriminator": {
1502
- "propertyName": "yesNo"
1503
- },
1504
- "oneOf": [
1505
- {
1506
- "properties": {
1507
- "yesNo": {
1508
- "enum": [
1509
- "No"
1510
- ]
1488
+ {
1489
+ "properties": {
1490
+ "yesNo": {
1491
+ "enum": [
1492
+ "Yes"
1493
+ ]
1494
+ }
1495
+ }
1511
1496
  }
1512
- }
1497
+ ]
1513
1498
  },
1514
- {
1515
- "properties": {
1516
- "yesNo": {
1517
- "enum": [
1518
- "Yes"
1519
- ]
1499
+ "plantOnOtherLand": {
1500
+ "piqRef": "A7.1.30",
1501
+ "discriminator": {
1502
+ "propertyName": "yesNo"
1503
+ },
1504
+ "oneOf": [
1505
+ {
1506
+ "properties": {
1507
+ "yesNo": {
1508
+ "enum": [
1509
+ "No"
1510
+ ]
1511
+ }
1512
+ }
1520
1513
  },
1521
- "dateLastEmptied": {
1522
- "piqRef": "A7.1.26"
1523
- }
1524
- }
1525
- }
1526
- ]
1527
- },
1528
- "sewerageTreatmentPlant": {
1529
- "piqRef": "A7.1.27",
1530
- "discriminator": {
1531
- "propertyName": "yesNo"
1532
- },
1533
- "oneOf": [
1534
- {
1535
- "properties": {
1536
- "yesNo": {
1537
- "enum": [
1538
- "No"
1539
- ]
1540
- }
1541
- }
1542
- },
1543
- {
1544
- "properties": {
1545
- "yesNo": {
1546
- "enum": [
1547
- "Yes"
1548
- ]
1549
- }
1550
- }
1551
- }
1552
- ]
1553
- },
1554
- "otherConnectedProperties": {
1555
- "piqRef": "A7.1.29",
1556
- "discriminator": {
1557
- "propertyName": "yesNo"
1558
- },
1559
- "oneOf": [
1560
- {
1561
- "properties": {
1562
- "yesNo": {
1563
- "enum": [
1564
- "No"
1565
- ]
1566
- }
1567
- }
1568
- },
1569
- {
1570
- "properties": {
1571
- "yesNo": {
1572
- "enum": [
1573
- "Yes"
1574
- ]
1575
- }
1576
- }
1577
- }
1578
- ]
1579
- },
1580
- "plantOnOtherLand": {
1581
- "piqRef": "A7.1.30",
1582
- "discriminator": {
1583
- "propertyName": "yesNo"
1584
- },
1585
- "oneOf": [
1586
- {
1587
- "properties": {
1588
- "yesNo": {
1589
- "enum": [
1590
- "No"
1591
- ]
1514
+ {
1515
+ "properties": {
1516
+ "yesNo": {
1517
+ "enum": [
1518
+ "Yes"
1519
+ ]
1520
+ }
1521
+ }
1592
1522
  }
1593
- }
1523
+ ]
1594
1524
  },
1595
- {
1596
- "properties": {
1597
- "yesNo": {
1598
- "enum": [
1599
- "Yes"
1600
- ]
1525
+ "plantRegistered": {
1526
+ "piqRef": "A7.1.31",
1527
+ "discriminator": {
1528
+ "propertyName": "yesNo"
1529
+ },
1530
+ "oneOf": [
1531
+ {
1532
+ "properties": {
1533
+ "yesNo": {
1534
+ "enum": [
1535
+ "No"
1536
+ ]
1537
+ }
1538
+ }
1539
+ },
1540
+ {
1541
+ "properties": {
1542
+ "yesNo": {
1543
+ "enum": [
1544
+ "Yes"
1545
+ ]
1546
+ }
1547
+ }
1601
1548
  }
1602
- }
1549
+ ]
1603
1550
  }
1604
- ]
1605
- },
1606
- "plantRegistered": {
1607
- "piqRef": "A7.1.31",
1608
- "discriminator": {
1609
- "propertyName": "yesNo"
1610
1551
  },
1611
1552
  "oneOf": [
1553
+ null,
1612
1554
  {
1613
1555
  "properties": {
1614
- "yesNo": {
1615
- "enum": [
1616
- "No"
1617
- ]
1556
+ "dateLastEmptied": {
1557
+ "piqRef": "A7.1.24"
1618
1558
  }
1619
1559
  }
1620
1560
  },
1621
1561
  {
1622
1562
  "properties": {
1623
- "yesNo": {
1624
- "enum": [
1625
- "Yes"
1626
- ]
1563
+ "dateLastEmptied": {
1564
+ "piqRef": "A7.1.26"
1627
1565
  }
1628
1566
  }
1629
1567
  }