@pdtf/schemas 3.0.0-15 → 3.0.0-17

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.
@@ -1010,57 +1010,165 @@
1010
1010
  "connectedUtilities": {
1011
1011
  "ntsRef": "B3",
1012
1012
  "required": [
1013
- "mainsElectricity",
1014
- "broadband",
1015
- "solarPanels",
1016
- "otherServices"
1013
+ "electricity",
1014
+ "broadband"
1017
1015
  ],
1018
1016
  "properties": {
1019
- "mainsElectricity": {
1017
+ "electricity": {
1020
1018
  "ntsRef": "B3.1",
1021
- "discriminator": {
1022
- "propertyName": "yesNo"
1023
- },
1024
- "oneOf": [
1025
- {
1019
+ "required": [
1020
+ "mainsElectricity",
1021
+ "solarPanels",
1022
+ "otherSources"
1023
+ ],
1024
+ "properties": {
1025
+ "mainsElectricity": {
1026
+ "ntsRef": "B3.1",
1027
+ "discriminator": {
1028
+ "propertyName": "yesNo"
1029
+ },
1030
+ "oneOf": [
1031
+ {
1032
+ "properties": {
1033
+ "yesNo": {
1034
+ "enum": [
1035
+ "No"
1036
+ ]
1037
+ }
1038
+ }
1039
+ },
1040
+ {
1041
+ "properties": {
1042
+ "yesNo": {
1043
+ "enum": [
1044
+ "Yes"
1045
+ ]
1046
+ }
1047
+ }
1048
+ },
1049
+ {
1050
+ "properties": {
1051
+ "yesNo": {
1052
+ "enum": [
1053
+ "To be connected"
1054
+ ]
1055
+ }
1056
+ }
1057
+ }
1058
+ ],
1059
+ "required": [
1060
+ "yesNo"
1061
+ ],
1026
1062
  "properties": {
1027
1063
  "yesNo": {
1064
+ "ntsRef": "B3.1.1",
1028
1065
  "enum": [
1066
+ "Yes",
1029
1067
  "No"
1030
1068
  ]
1031
1069
  }
1032
1070
  }
1033
1071
  },
1034
- {
1072
+ "solarPanels": {
1073
+ "ntsRef": "B3.7",
1074
+ "discriminator": {
1075
+ "propertyName": "yesNo"
1076
+ },
1077
+ "oneOf": [
1078
+ {
1079
+ "properties": {
1080
+ "yesNo": {
1081
+ "enum": [
1082
+ "No"
1083
+ ]
1084
+ }
1085
+ }
1086
+ },
1087
+ {
1088
+ "properties": {
1089
+ "yesNo": {
1090
+ "enum": [
1091
+ "Yes"
1092
+ ]
1093
+ }
1094
+ }
1095
+ },
1096
+ {
1097
+ "properties": {
1098
+ "yesNo": {
1099
+ "enum": [
1100
+ "To be connected"
1101
+ ]
1102
+ }
1103
+ }
1104
+ }
1105
+ ],
1106
+ "required": [
1107
+ "yesNo"
1108
+ ],
1035
1109
  "properties": {
1036
1110
  "yesNo": {
1111
+ "ntsRef": "B3.7.1",
1037
1112
  "enum": [
1038
- "Yes"
1113
+ "Yes",
1114
+ "No"
1039
1115
  ]
1040
1116
  }
1041
1117
  }
1042
1118
  },
1043
- {
1119
+ "otherSources": {
1120
+ "ntsRef": "B3.8",
1121
+ "discriminator": {
1122
+ "propertyName": "yesNo"
1123
+ },
1124
+ "oneOf": [
1125
+ {
1126
+ "properties": {
1127
+ "yesNo": {
1128
+ "enum": [
1129
+ "No"
1130
+ ]
1131
+ }
1132
+ }
1133
+ },
1134
+ {
1135
+ "properties": {
1136
+ "yesNo": {
1137
+ "enum": [
1138
+ "Yes"
1139
+ ]
1140
+ },
1141
+ "details": {
1142
+ "ntsRef": "3.8.2"
1143
+ }
1144
+ },
1145
+ "required": [
1146
+ "details"
1147
+ ]
1148
+ },
1149
+ {
1150
+ "properties": {
1151
+ "yesNo": {
1152
+ "enum": [
1153
+ "To be connected"
1154
+ ]
1155
+ }
1156
+ }
1157
+ }
1158
+ ],
1159
+ "required": [
1160
+ "yesNo"
1161
+ ],
1044
1162
  "properties": {
1045
1163
  "yesNo": {
1164
+ "ntsRef": "B3.8.1",
1046
1165
  "enum": [
1047
- "To be connected"
1166
+ "Yes",
1167
+ "No"
1048
1168
  ]
1049
1169
  }
1050
1170
  }
1051
1171
  }
1052
- ],
1053
- "required": [
1054
- "yesNo"
1055
- ],
1056
- "properties": {
1057
- "yesNo": {
1058
- "ntsRef": "B3.1.1",
1059
- "enum": [
1060
- "Yes",
1061
- "No"
1062
- ]
1063
- }
1064
1172
  }
1065
1173
  },
1066
1174
  "mainsGas": {
@@ -1165,106 +1273,6 @@
1165
1273
  ]
1166
1274
  }
1167
1275
  }
1168
- },
1169
- "solarPanels": {
1170
- "ntsRef": "B3.7",
1171
- "discriminator": {
1172
- "propertyName": "yesNo"
1173
- },
1174
- "oneOf": [
1175
- {
1176
- "properties": {
1177
- "yesNo": {
1178
- "enum": [
1179
- "No"
1180
- ]
1181
- }
1182
- }
1183
- },
1184
- {
1185
- "properties": {
1186
- "yesNo": {
1187
- "enum": [
1188
- "Yes"
1189
- ]
1190
- }
1191
- }
1192
- },
1193
- {
1194
- "properties": {
1195
- "yesNo": {
1196
- "enum": [
1197
- "To be connected"
1198
- ]
1199
- }
1200
- }
1201
- }
1202
- ],
1203
- "required": [
1204
- "yesNo"
1205
- ],
1206
- "properties": {
1207
- "yesNo": {
1208
- "ntsRef": "B3.7.1",
1209
- "enum": [
1210
- "Yes",
1211
- "No"
1212
- ]
1213
- }
1214
- }
1215
- },
1216
- "otherServices": {
1217
- "ntsRef": "B3.8",
1218
- "discriminator": {
1219
- "propertyName": "yesNo"
1220
- },
1221
- "oneOf": [
1222
- {
1223
- "properties": {
1224
- "yesNo": {
1225
- "enum": [
1226
- "No"
1227
- ]
1228
- }
1229
- }
1230
- },
1231
- {
1232
- "properties": {
1233
- "yesNo": {
1234
- "enum": [
1235
- "Yes"
1236
- ]
1237
- },
1238
- "details": {
1239
- "ntsRef": "3.8.2"
1240
- }
1241
- },
1242
- "required": [
1243
- "details"
1244
- ]
1245
- },
1246
- {
1247
- "properties": {
1248
- "yesNo": {
1249
- "enum": [
1250
- "To be connected"
1251
- ]
1252
- }
1253
- }
1254
- }
1255
- ],
1256
- "required": [
1257
- "yesNo"
1258
- ],
1259
- "properties": {
1260
- "yesNo": {
1261
- "ntsRef": "B3.8.1",
1262
- "enum": [
1263
- "Yes",
1264
- "No"
1265
- ]
1266
- }
1267
- }
1268
1276
  }
1269
1277
  }
1270
1278
  },
@@ -1513,99 +1521,107 @@
1513
1521
  },
1514
1522
  "heating": {
1515
1523
  "ntsRef": "B3.4",
1516
- "discriminator": {
1517
- "propertyName": "heatingType"
1518
- },
1519
- "oneOf": [
1520
- {
1521
- "properties": {
1522
- "heatingType": {
1523
- "enum": [
1524
- "None"
1525
- ]
1526
- }
1527
- }
1528
- },
1529
- {
1530
- "properties": {
1531
- "heatingType": {
1532
- "enum": [
1533
- "Central heating"
1534
- ]
1524
+ "required": [
1525
+ "heatingSystem"
1526
+ ],
1527
+ "properties": {
1528
+ "heatingSystem": {
1529
+ "ntsRef": "B3.4.1",
1530
+ "discriminator": {
1531
+ "propertyName": "heatingType"
1532
+ },
1533
+ "oneOf": [
1534
+ {
1535
+ "properties": {
1536
+ "heatingType": {
1537
+ "enum": [
1538
+ "None"
1539
+ ]
1540
+ }
1541
+ }
1535
1542
  },
1536
- "centralHeatingDetails": {
1537
- "ntsRef": "B3.4.3",
1538
- "required": [
1539
- "centralHeatingFuel"
1540
- ],
1543
+ {
1541
1544
  "properties": {
1542
- "centralHeatingFuel": {
1543
- "ntsRef": "B3.4.3.1",
1544
- "discriminator": {
1545
- "propertyName": "centralHeatingFuelType"
1546
- },
1547
- "oneOf": [
1548
- {
1549
- "properties": {
1550
- "centralHeatingFuelType": {
1551
- "enum": [
1552
- "Mains gas",
1553
- "Electricity",
1554
- "Oil",
1555
- "LPG",
1556
- "Biomass"
1557
- ]
1545
+ "heatingType": {
1546
+ "enum": [
1547
+ "Central heating"
1548
+ ]
1549
+ },
1550
+ "centralHeatingDetails": {
1551
+ "ntsRef": "B3.4.3",
1552
+ "required": [
1553
+ "centralHeatingFuel"
1554
+ ],
1555
+ "properties": {
1556
+ "centralHeatingFuel": {
1557
+ "ntsRef": "B3.4.3.1",
1558
+ "discriminator": {
1559
+ "propertyName": "centralHeatingFuelType"
1560
+ },
1561
+ "oneOf": [
1562
+ {
1563
+ "properties": {
1564
+ "centralHeatingFuelType": {
1565
+ "enum": [
1566
+ "Mains gas",
1567
+ "Electricity",
1568
+ "Oil",
1569
+ "LPG",
1570
+ "Biomass"
1571
+ ]
1572
+ }
1573
+ }
1574
+ },
1575
+ {
1576
+ "properties": {
1577
+ "centralHeatingFuelType": {
1578
+ "enum": [
1579
+ "Other"
1580
+ ]
1581
+ }
1582
+ }
1558
1583
  }
1559
- }
1560
- },
1561
- {
1584
+ ],
1585
+ "required": [
1586
+ "centralHeatingFuelType"
1587
+ ],
1562
1588
  "properties": {
1563
1589
  "centralHeatingFuelType": {
1564
- "enum": [
1565
- "Other"
1566
- ]
1590
+ "ntsRef": "B3.4.3.1.1"
1567
1591
  }
1568
1592
  }
1569
1593
  }
1570
- ],
1571
- "required": [
1572
- "centralHeatingFuelType"
1573
- ],
1574
- "properties": {
1575
- "centralHeatingFuelType": {
1576
- "ntsRef": "B3.4.3.1.1"
1577
- }
1578
1594
  }
1579
1595
  }
1580
- }
1596
+ },
1597
+ "required": [
1598
+ "centralHeatingDetails"
1599
+ ]
1600
+ },
1601
+ {
1602
+ "properties": {
1603
+ "heatingType": {
1604
+ "enum": [
1605
+ "Community heating system"
1606
+ ]
1607
+ },
1608
+ "details": {
1609
+ "ntsRef": "B3.4.4"
1610
+ }
1611
+ },
1612
+ "required": [
1613
+ "details"
1614
+ ]
1581
1615
  }
1582
- },
1616
+ ],
1583
1617
  "required": [
1584
- "centralHeatingDetails"
1585
- ]
1586
- },
1587
- {
1618
+ "heatingType"
1619
+ ],
1588
1620
  "properties": {
1589
1621
  "heatingType": {
1590
- "enum": [
1591
- "Community heating system"
1592
- ]
1593
- },
1594
- "details": {
1595
- "ntsRef": "B3.4.4"
1622
+ "ntsRef": "B3.4.1"
1596
1623
  }
1597
- },
1598
- "required": [
1599
- "details"
1600
- ]
1601
- }
1602
- ],
1603
- "required": [
1604
- "heatingType"
1605
- ],
1606
- "properties": {
1607
- "heatingType": {
1608
- "ntsRef": "B3.4.1"
1624
+ }
1609
1625
  },
1610
1626
  "otherHeatingFeatures": {
1611
1627
  "ntsRef": "B3.4.2"