@pdtf/schemas 3.0.0-10 → 3.0.0-11

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": {
@@ -165,30 +166,78 @@
165
166
  }
166
167
  }
167
168
  },
168
- "rooms": {
169
+ "roomDimensions": {
169
170
  "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"
171
+ "properties": {
172
+ "hasFloorplan": {
173
+ "ntsRef": "B2.1",
174
+ "discriminator": {
175
+ "propertyName": "yesNo"
189
176
  },
190
- "photoUrls": {
191
- "ntsRef": "B2.7"
177
+ "oneOf": [
178
+ {
179
+ "properties": {
180
+ "yesNo": {
181
+ "enum": [
182
+ "Yes"
183
+ ]
184
+ }
185
+ }
186
+ },
187
+ {
188
+ "properties": {
189
+ "yesNo": {
190
+ "enum": [
191
+ "No"
192
+ ]
193
+ },
194
+ "rooms": {
195
+ "ntsRef": "B2",
196
+ "items": {
197
+ "required": [
198
+ "roomName",
199
+ "length",
200
+ "width",
201
+ "units"
202
+ ],
203
+ "properties": {
204
+ "roomName": {
205
+ "ntsRef": "B2.1.1"
206
+ },
207
+ "description": {
208
+ "ntsRef": "B2.1.2"
209
+ },
210
+ "length": {
211
+ "ntsRef": "B2.1.3"
212
+ },
213
+ "width": {
214
+ "ntsRef": "B2.1.4"
215
+ },
216
+ "units": {
217
+ "ntsRef": "B2.1.5"
218
+ },
219
+ "dimensionDetails": {
220
+ "ntsRef": "B2.6"
221
+ },
222
+ "photoUrls": {
223
+ "ntsRef": "B2.7"
224
+ }
225
+ }
226
+ }
227
+ }
228
+ },
229
+ "required": [
230
+ "rooms"
231
+ ]
232
+ }
233
+ ],
234
+ "required": [
235
+ "yesNo"
236
+ ],
237
+ "properties": {
238
+ "yesNo": {
239
+ "ntsRef": "B2.1.1"
240
+ }
192
241
  }
193
242
  }
194
243
  }
@@ -1361,6 +1410,15 @@
1361
1410
  }
1362
1411
  }
1363
1412
  },
1413
+ {
1414
+ "properties": {
1415
+ "yesNo": {
1416
+ "enum": [
1417
+ "Not known"
1418
+ ]
1419
+ }
1420
+ }
1421
+ },
1364
1422
  {
1365
1423
  "properties": {
1366
1424
  "yesNo": {
@@ -1374,166 +1432,62 @@
1374
1432
  "properties": {
1375
1433
  "yesNo": {
1376
1434
  "enum": [
1377
- "No",
1378
- "Not known"
1435
+ "No"
1379
1436
  ]
1380
1437
  },
1381
- "sustainableDrainageSystem": {
1438
+ "offMainsDrainageSystem": {
1382
1439
  "ntsRef": "A3.3.3",
1383
1440
  "discriminator": {
1384
- "propertyName": "yesNo"
1441
+ "propertyName": "offMainsDrainageSystemType"
1385
1442
  },
1386
1443
  "oneOf": [
1387
1444
  {
1388
1445
  "properties": {
1389
- "yesNo": {
1446
+ "offMainsDrainageSystemType": {
1390
1447
  "enum": [
1391
- "No"
1448
+ "Sustainable Drainage System"
1392
1449
  ]
1393
1450
  }
1394
1451
  }
1395
1452
  },
1396
1453
  {
1397
1454
  "properties": {
1398
- "yesNo": {
1455
+ "offMainsDrainageSystemType": {
1399
1456
  "enum": [
1400
- "Yes"
1457
+ "Septic tank"
1401
1458
  ]
1402
1459
  }
1403
1460
  }
1404
1461
  },
1405
1462
  {
1406
1463
  "properties": {
1407
- "yesNo": {
1464
+ "offMainsDrainageSystemType": {
1408
1465
  "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"
1432
- },
1433
- "oneOf": [
1434
- {
1435
- "properties": {
1436
- "yesNo": {
1437
- "enum": [
1438
- "No"
1466
+ "Cesspit"
1439
1467
  ]
1440
1468
  }
1441
1469
  }
1442
1470
  },
1443
1471
  {
1444
1472
  "properties": {
1445
- "yesNo": {
1473
+ "offMainsDrainageSystemType": {
1446
1474
  "enum": [
1447
- "Yes"
1475
+ "Sewerage treatment plant"
1448
1476
  ]
1449
1477
  }
1450
1478
  }
1451
1479
  }
1452
1480
  ],
1453
1481
  "required": [
1454
- "yesNo"
1482
+ "offMainsDrainageSystemType"
1455
1483
  ],
1456
1484
  "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": {
1471
- "enum": [
1472
- "No"
1473
- ]
1474
- }
1475
- }
1476
- },
1477
- {
1478
- "properties": {
1479
- "yesNo": {
1480
- "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"
1507
- ]
1508
- }
1509
- }
1510
- },
1511
- {
1512
- "properties": {
1513
- "yesNo": {
1514
- "enum": [
1515
- "Yes"
1516
- ]
1517
- }
1518
- }
1519
- }
1520
- ],
1521
- "required": [
1522
- "yesNo"
1523
- ],
1524
- "properties": {
1525
- "yesNo": {
1526
- "ntsRef": "A3.3.6.1"
1485
+ "offMainsDrainageSystemType": {
1486
+ "ntsRef": "A3.3.3.1"
1527
1487
  }
1528
1488
  }
1529
1489
  }
1530
- },
1531
- "required": [
1532
- "sustainableDrainageSystem",
1533
- "septicTank",
1534
- "cesspit",
1535
- "sewerageTreatmentPlant"
1536
- ]
1490
+ }
1537
1491
  }
1538
1492
  ],
1539
1493
  "required": [
@@ -1701,6 +1655,7 @@
1701
1655
  "required": [
1702
1656
  "yesNo"
1703
1657
  ],
1658
+ "title": "Is there a public right of way through and/or across your house, buildings or land?",
1704
1659
  "properties": {
1705
1660
  "yesNo": {
1706
1661
  "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
  }