@pdtf/schemas 3.0.1-6 → 3.0.3-2

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.
@@ -0,0 +1,1641 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://trust.propdata.org.uk/schemas/v3/overlays/ntsl.json",
4
+ "required": [
5
+ "propertyPack"
6
+ ],
7
+ "properties": {
8
+ "propertyPack": {
9
+ "ntslRef": "0",
10
+ "required": [
11
+ "lettingInformation",
12
+ "councilTax",
13
+ "energyEfficiency",
14
+ "buildInformation",
15
+ "typeOfConstruction",
16
+ "electricity",
17
+ "connectivity",
18
+ "waterAndDrainage",
19
+ "heating",
20
+ "parking",
21
+ "listingAndConservation",
22
+ "rightsAndInformalArrangements",
23
+ "environmentalIssues",
24
+ "notices"
25
+ ],
26
+ "properties": {
27
+ "lettingInformation": {
28
+ "ntslRef": "A2",
29
+ "required": [
30
+ "rent",
31
+ "rentFrequency"
32
+ ],
33
+ "properties": {
34
+ "rent": {
35
+ "ntslRef": "A2.1"
36
+ },
37
+ "rentFrequency": {
38
+ "ntslRef": "A2.2"
39
+ },
40
+ "securityDeposit": {
41
+ "ntslRef": "A3.1"
42
+ },
43
+ "holdingDeposit": {
44
+ "ntslRef": "A3.2"
45
+ }
46
+ }
47
+ },
48
+ "buildInformation": {
49
+ "ntslRef": "B1.1",
50
+ "required": [
51
+ "building",
52
+ "roomDimensions"
53
+ ],
54
+ "properties": {
55
+ "building": {
56
+ "ntslRef": "B1.1.1",
57
+ "discriminator": {
58
+ "propertyName": "propertyType"
59
+ },
60
+ "oneOf": [
61
+ {
62
+ "properties": {
63
+ "propertyType": {
64
+ "enum": [
65
+ "Other"
66
+ ]
67
+ },
68
+ "otherType": {
69
+ "ntslRef": "B1.1.1.1"
70
+ }
71
+ },
72
+ "required": [
73
+ "otherType"
74
+ ]
75
+ },
76
+ {
77
+ "properties": {
78
+ "propertyType": {
79
+ "enum": [
80
+ "House",
81
+ "Bungalow"
82
+ ]
83
+ }
84
+ }
85
+ },
86
+ {
87
+ "properties": {
88
+ "propertyType": {
89
+ "enum": [
90
+ "Maisonette",
91
+ "Flat"
92
+ ]
93
+ },
94
+ "numberOfFloors": {
95
+ "ntslRef": "B1.1.3"
96
+ },
97
+ "entranceFloor": {
98
+ "ntslRef": "B1.1.4"
99
+ },
100
+ "hasLift": {
101
+ "ntslRef": "B1.1.5"
102
+ },
103
+ "overCommercialPremises": {
104
+ "ntslRef": "B1.1.6",
105
+ "discriminator": {
106
+ "propertyName": "isLocatedOverCommercialPremises"
107
+ },
108
+ "oneOf": [
109
+ {
110
+ "properties": {
111
+ "isLocatedOverCommercialPremises": {
112
+ "enum": [
113
+ "No"
114
+ ]
115
+ }
116
+ }
117
+ },
118
+ {
119
+ "properties": {
120
+ "isLocatedOverCommercialPremises": {
121
+ "enum": [
122
+ "Yes"
123
+ ]
124
+ },
125
+ "details": {
126
+ "ntslRef": "B1.1.6.2"
127
+ }
128
+ },
129
+ "required": [
130
+ "details"
131
+ ]
132
+ }
133
+ ],
134
+ "properties": {
135
+ "isLocatedOverCommercialPremises": {
136
+ "ntslRef": "B1.1.6.1"
137
+ }
138
+ }
139
+ }
140
+ }
141
+ }
142
+ ],
143
+ "required": [
144
+ "builtForm",
145
+ "propertyType"
146
+ ],
147
+ "properties": {
148
+ "builtForm": {
149
+ "ntslRef": "B1.1.2"
150
+ },
151
+ "propertyType": {
152
+ "ntslRef": "B1.1.1.1"
153
+ }
154
+ }
155
+ },
156
+ "roomDimensions": {
157
+ "ntslRef": "B2",
158
+ "discriminator": {
159
+ "propertyName": "hasFloorplan"
160
+ },
161
+ "oneOf": [
162
+ {
163
+ "properties": {
164
+ "hasFloorplan": {
165
+ "enum": [
166
+ "Yes"
167
+ ]
168
+ },
169
+ "attachments": {
170
+ "ntslRef": "B2.1.1"
171
+ }
172
+ }
173
+ },
174
+ {
175
+ "properties": {
176
+ "hasFloorplan": {
177
+ "enum": [
178
+ "No"
179
+ ]
180
+ },
181
+ "rooms": {
182
+ "ntslRef": "B2.2",
183
+ "items": {
184
+ "required": [
185
+ "roomName",
186
+ "length",
187
+ "width",
188
+ "units"
189
+ ],
190
+ "properties": {
191
+ "roomName": {
192
+ "ntslRef": "B2.2.1"
193
+ },
194
+ "description": {
195
+ "ntslRef": "B2.2.2"
196
+ },
197
+ "length": {
198
+ "ntslRef": "B2.2.3"
199
+ },
200
+ "width": {
201
+ "ntslRef": "B2.2.4"
202
+ },
203
+ "units": {
204
+ "ntslRef": "B2.2.5"
205
+ },
206
+ "dimensionDetails": {
207
+ "ntslRef": "B2.6"
208
+ }
209
+ }
210
+ }
211
+ }
212
+ }
213
+ }
214
+ ],
215
+ "required": [
216
+ "hasFloorplan"
217
+ ],
218
+ "properties": {
219
+ "hasFloorplan": {
220
+ "ntslRef": "B2.1"
221
+ }
222
+ }
223
+ }
224
+ }
225
+ },
226
+ "ownership": {
227
+ "required": [
228
+ "ownershipsToBeTransferred"
229
+ ],
230
+ "properties": {
231
+ "ownershipsToBeTransferred": {
232
+ "items": {
233
+ "required": [
234
+ "ownershipType"
235
+ ]
236
+ }
237
+ }
238
+ }
239
+ },
240
+ "parking": {
241
+ "ntslRef": "B4",
242
+ "properties": {
243
+ "parkingArrangements": {
244
+ "ntslRef": "B4.1",
245
+ "items": {
246
+ "ntslRef": "B4.1.1"
247
+ }
248
+ },
249
+ "disabledParking": {
250
+ "ntslRef": "B4.2",
251
+ "required": [
252
+ "yesNo"
253
+ ],
254
+ "properties": {
255
+ "yesNo": {
256
+ "ntslRef": "B4.2.1"
257
+ }
258
+ }
259
+ },
260
+ "controlledParking": {
261
+ "ntslRef": "B4.3",
262
+ "required": [
263
+ "yesNo"
264
+ ],
265
+ "properties": {
266
+ "yesNo": {
267
+ "ntslRef": "B4.3.1"
268
+ }
269
+ }
270
+ },
271
+ "electricVehicleChargingPoint": {
272
+ "ntslRef": "B4.4",
273
+ "required": [
274
+ "yesNo"
275
+ ],
276
+ "properties": {
277
+ "yesNo": {
278
+ "ntslRef": "B4.4.1"
279
+ }
280
+ }
281
+ }
282
+ }
283
+ },
284
+ "listingAndConservation": {
285
+ "ntslRef": "C2.1",
286
+ "properties": {
287
+ "isListed": {
288
+ "ntslRef": "C2.1.1",
289
+ "discriminator": {
290
+ "propertyName": "yesNo"
291
+ },
292
+ "oneOf": [
293
+ {
294
+ "properties": {
295
+ "yesNo": {
296
+ "enum": [
297
+ "No",
298
+ "Not known"
299
+ ]
300
+ }
301
+ }
302
+ },
303
+ {
304
+ "properties": {
305
+ "yesNo": {
306
+ "enum": [
307
+ "Yes"
308
+ ]
309
+ },
310
+ "details": {
311
+ "ntslRef": "C2.1.1.2"
312
+ }
313
+ },
314
+ "required": [
315
+ "details"
316
+ ]
317
+ }
318
+ ],
319
+ "required": [
320
+ "yesNo"
321
+ ],
322
+ "properties": {
323
+ "yesNo": {
324
+ "ntslRef": "C2.1.1.1",
325
+ "enum": [
326
+ "Yes",
327
+ "No"
328
+ ]
329
+ }
330
+ }
331
+ },
332
+ "isConservationArea": {
333
+ "ntslRef": "C2.1.2",
334
+ "discriminator": {
335
+ "propertyName": "yesNo"
336
+ },
337
+ "oneOf": [
338
+ {
339
+ "properties": {
340
+ "yesNo": {
341
+ "enum": [
342
+ "No",
343
+ "Not known"
344
+ ]
345
+ }
346
+ }
347
+ },
348
+ {
349
+ "properties": {
350
+ "yesNo": {
351
+ "enum": [
352
+ "Yes"
353
+ ]
354
+ },
355
+ "details": {
356
+ "ntslRef": "C2.1.2.2"
357
+ }
358
+ },
359
+ "required": [
360
+ "details"
361
+ ]
362
+ }
363
+ ],
364
+ "required": [
365
+ "yesNo"
366
+ ],
367
+ "properties": {
368
+ "yesNo": {
369
+ "ntslRef": "C2.1.2.1",
370
+ "enum": [
371
+ "Yes",
372
+ "No"
373
+ ]
374
+ }
375
+ }
376
+ },
377
+ "hasTreePreservationOrder": {
378
+ "ntslRef": "C2.1.3",
379
+ "discriminator": {
380
+ "propertyName": "yesNo"
381
+ },
382
+ "oneOf": [
383
+ {
384
+ "properties": {
385
+ "yesNo": {
386
+ "enum": [
387
+ "No",
388
+ "Not known"
389
+ ]
390
+ }
391
+ }
392
+ },
393
+ {
394
+ "properties": {
395
+ "yesNo": {
396
+ "enum": [
397
+ "Yes"
398
+ ]
399
+ },
400
+ "workCarriedOut": {
401
+ "ntslRef": "C2.1.3.2",
402
+ "discriminator": {
403
+ "propertyName": "yesNo"
404
+ },
405
+ "oneOf": [
406
+ {
407
+ "properties": {
408
+ "yesNo": {
409
+ "enum": [
410
+ "No"
411
+ ]
412
+ }
413
+ }
414
+ },
415
+ {
416
+ "properties": {
417
+ "yesNo": {
418
+ "enum": [
419
+ "Yes"
420
+ ]
421
+ },
422
+ "consentsObtained": {
423
+ "ntslRef": "C2.1.3.3"
424
+ }
425
+ },
426
+ "required": [
427
+ "consentsObtained"
428
+ ]
429
+ }
430
+ ],
431
+ "required": [
432
+ "yesNo"
433
+ ]
434
+ }
435
+ }
436
+ }
437
+ ],
438
+ "required": [
439
+ "yesNo"
440
+ ],
441
+ "properties": {
442
+ "yesNo": {
443
+ "ntslRef": "C2.1.3.1",
444
+ "enum": [
445
+ "Yes",
446
+ "No"
447
+ ]
448
+ }
449
+ }
450
+ }
451
+ }
452
+ },
453
+ "typeOfConstruction": {
454
+ "ntslRef": "A1.2",
455
+ "properties": {
456
+ "isStandardForm": {
457
+ "ntslRef": "A1.2.1",
458
+ "discriminator": {
459
+ "propertyName": "yesNo"
460
+ },
461
+ "oneOf": [
462
+ {
463
+ "properties": {
464
+ "yesNo": {
465
+ "enum": [
466
+ "Yes"
467
+ ]
468
+ }
469
+ }
470
+ },
471
+ {
472
+ "properties": {
473
+ "yesNo": {
474
+ "enum": [
475
+ "No"
476
+ ]
477
+ },
478
+ "details": {
479
+ "ntslRef": "A1.2.1.2"
480
+ }
481
+ },
482
+ "required": [
483
+ "details"
484
+ ]
485
+ }
486
+ ],
487
+ "required": [
488
+ "yesNo"
489
+ ],
490
+ "properties": {
491
+ "yesNo": {
492
+ "ntslRef": "A1.2.1.1"
493
+ }
494
+ }
495
+ },
496
+ "buildingSafety": {
497
+ "ntslRef": "C1",
498
+ "discriminator": {
499
+ "propertyName": "yesNo"
500
+ },
501
+ "oneOf": [
502
+ {
503
+ "properties": {
504
+ "yesNo": {
505
+ "enum": [
506
+ "No"
507
+ ]
508
+ }
509
+ }
510
+ },
511
+ {
512
+ "properties": {
513
+ "yesNo": {
514
+ "enum": [
515
+ "Yes"
516
+ ]
517
+ },
518
+ "details": {
519
+ "ntslRef": "C1.2"
520
+ },
521
+ "workAlreadyDone": {
522
+ "ntslRef": "C1.3"
523
+ },
524
+ "workToBeDone": {
525
+ "ntslRef": "C1.4"
526
+ },
527
+ "potentialCost": {
528
+ "ntslRef": "C1.5"
529
+ },
530
+ "abilityToResideAtProperty": {
531
+ "ntslRef": "C1.6"
532
+ }
533
+ }
534
+ }
535
+ ],
536
+ "required": [
537
+ "yesNo"
538
+ ],
539
+ "properties": {
540
+ "yesNo": {
541
+ "ntslRef": "C1.1",
542
+ "enum": [
543
+ "Yes",
544
+ "No"
545
+ ]
546
+ }
547
+ }
548
+ },
549
+ "accessibilityAndAdaptations": {
550
+ "ntslRef": "C5"
551
+ }
552
+ }
553
+ },
554
+ "energyEfficiency": {
555
+ "ntslRef": "A4",
556
+ "required": [
557
+ "certificate"
558
+ ],
559
+ "properties": {
560
+ "certificate": {
561
+ "ntslRef": "A4.1",
562
+ "required": [
563
+ "currentEnergyRating"
564
+ ],
565
+ "properties": {
566
+ "currentEnergyRating": {
567
+ "ntslRef": "A4.1.1"
568
+ }
569
+ }
570
+ }
571
+ }
572
+ },
573
+ "councilTax": {
574
+ "ntslRef": "A1",
575
+ "required": [
576
+ "councilTaxBand",
577
+ "councilTaxAffectingAlterations"
578
+ ],
579
+ "properties": {
580
+ "councilTaxBand": {
581
+ "ntslRef": "A1.1"
582
+ },
583
+ "councilTaxAffectingAlterations": {
584
+ "ntslRef": "A1.2",
585
+ "discriminator": {
586
+ "propertyName": "yesNo"
587
+ },
588
+ "oneOf": [
589
+ {
590
+ "properties": {
591
+ "yesNo": {
592
+ "enum": [
593
+ "No"
594
+ ]
595
+ }
596
+ }
597
+ },
598
+ {
599
+ "properties": {
600
+ "yesNo": {
601
+ "enum": [
602
+ "Yes"
603
+ ]
604
+ },
605
+ "details": {
606
+ "ntslRef": "A1.2.2"
607
+ },
608
+ "attachments": {
609
+ "ntslRef": "A1.2.3"
610
+ }
611
+ },
612
+ "required": [
613
+ "details"
614
+ ]
615
+ }
616
+ ],
617
+ "required": [
618
+ "yesNo"
619
+ ],
620
+ "properties": {
621
+ "yesNo": {
622
+ "ntslRef": "A1.2.1"
623
+ }
624
+ }
625
+ }
626
+ }
627
+ },
628
+ "notices": {
629
+ "ntslRef": "C4",
630
+ "required": [
631
+ "neighbourDevelopment",
632
+ "planningApplication"
633
+ ],
634
+ "properties": {
635
+ "neighbourDevelopment": {
636
+ "ntslRef": "C4.1",
637
+ "discriminator": {
638
+ "propertyName": "yesNo"
639
+ },
640
+ "oneOf": [
641
+ {
642
+ "properties": {
643
+ "yesNo": {
644
+ "enum": [
645
+ "No"
646
+ ]
647
+ }
648
+ }
649
+ },
650
+ {
651
+ "properties": {
652
+ "yesNo": {
653
+ "enum": [
654
+ "Yes"
655
+ ]
656
+ },
657
+ "details": {
658
+ "ntslRef": "C4.1.2"
659
+ }
660
+ },
661
+ "required": [
662
+ "details"
663
+ ]
664
+ }
665
+ ],
666
+ "required": [
667
+ "yesNo"
668
+ ],
669
+ "properties": {
670
+ "yesNo": {
671
+ "ntslRef": "C4.1.1"
672
+ }
673
+ }
674
+ },
675
+ "planningApplication": {
676
+ "ntslRef": "C4.2",
677
+ "discriminator": {
678
+ "propertyName": "yesNo"
679
+ },
680
+ "oneOf": [
681
+ {
682
+ "properties": {
683
+ "yesNo": {
684
+ "enum": [
685
+ "No"
686
+ ]
687
+ }
688
+ }
689
+ },
690
+ {
691
+ "properties": {
692
+ "yesNo": {
693
+ "enum": [
694
+ "Yes"
695
+ ]
696
+ },
697
+ "details": {
698
+ "ntslRef": "C4.2.2"
699
+ }
700
+ },
701
+ "required": [
702
+ "details"
703
+ ]
704
+ }
705
+ ],
706
+ "required": [
707
+ "yesNo"
708
+ ],
709
+ "properties": {
710
+ "yesNo": {
711
+ "ntslRef": "C4.2.1"
712
+ }
713
+ }
714
+ }
715
+ }
716
+ },
717
+ "electricity": {
718
+ "ntslRef": "B3.1",
719
+ "required": [
720
+ "mainsElectricity",
721
+ "solarPanels",
722
+ "otherSources"
723
+ ],
724
+ "properties": {
725
+ "mainsElectricity": {
726
+ "ntslRef": "B3.1",
727
+ "discriminator": {
728
+ "propertyName": "yesNo"
729
+ },
730
+ "oneOf": [
731
+ {
732
+ "properties": {
733
+ "yesNo": {
734
+ "enum": [
735
+ "No"
736
+ ]
737
+ }
738
+ }
739
+ },
740
+ {
741
+ "properties": {
742
+ "yesNo": {
743
+ "enum": [
744
+ "Yes"
745
+ ]
746
+ }
747
+ }
748
+ },
749
+ {
750
+ "properties": {
751
+ "yesNo": {
752
+ "enum": [
753
+ "To be connected"
754
+ ]
755
+ }
756
+ }
757
+ }
758
+ ],
759
+ "required": [
760
+ "yesNo"
761
+ ],
762
+ "properties": {
763
+ "yesNo": {
764
+ "ntslRef": "B3.1.1",
765
+ "enum": [
766
+ "Yes",
767
+ "No"
768
+ ]
769
+ }
770
+ }
771
+ },
772
+ "solarPanels": {
773
+ "ntslRef": "B3.7",
774
+ "discriminator": {
775
+ "propertyName": "yesNo"
776
+ },
777
+ "oneOf": [
778
+ {
779
+ "properties": {
780
+ "yesNo": {
781
+ "enum": [
782
+ "No"
783
+ ]
784
+ }
785
+ }
786
+ },
787
+ {
788
+ "properties": {
789
+ "yesNo": {
790
+ "enum": [
791
+ "Yes"
792
+ ]
793
+ }
794
+ }
795
+ },
796
+ {
797
+ "properties": {
798
+ "yesNo": {
799
+ "enum": [
800
+ "To be connected"
801
+ ]
802
+ }
803
+ }
804
+ }
805
+ ],
806
+ "required": [
807
+ "yesNo"
808
+ ],
809
+ "properties": {
810
+ "yesNo": {
811
+ "ntslRef": "B3.7.1",
812
+ "enum": [
813
+ "Yes",
814
+ "No"
815
+ ]
816
+ }
817
+ }
818
+ },
819
+ "otherSources": {
820
+ "ntslRef": "B3.8",
821
+ "discriminator": {
822
+ "propertyName": "yesNo"
823
+ },
824
+ "oneOf": [
825
+ {
826
+ "properties": {
827
+ "yesNo": {
828
+ "enum": [
829
+ "No"
830
+ ]
831
+ }
832
+ }
833
+ },
834
+ {
835
+ "properties": {
836
+ "yesNo": {
837
+ "enum": [
838
+ "Yes"
839
+ ]
840
+ },
841
+ "details": {
842
+ "ntslRef": "3.8.2"
843
+ }
844
+ },
845
+ "required": [
846
+ "details"
847
+ ]
848
+ },
849
+ {
850
+ "properties": {
851
+ "yesNo": {
852
+ "enum": [
853
+ "To be connected"
854
+ ]
855
+ },
856
+ "details": {
857
+ "ntslRef": "3.8.2"
858
+ }
859
+ }
860
+ }
861
+ ],
862
+ "required": [
863
+ "yesNo"
864
+ ],
865
+ "properties": {
866
+ "yesNo": {
867
+ "ntslRef": "B3.8.1",
868
+ "enum": [
869
+ "Yes",
870
+ "No"
871
+ ]
872
+ }
873
+ }
874
+ }
875
+ }
876
+ },
877
+ "waterAndDrainage": {
878
+ "ntslRef": "B3.2",
879
+ "required": [
880
+ "water",
881
+ "drainage"
882
+ ],
883
+ "properties": {
884
+ "water": {
885
+ "ntslRef": "B3.2",
886
+ "required": [
887
+ "mainsWater"
888
+ ],
889
+ "properties": {
890
+ "mainsWater": {
891
+ "ntslRef": "B3.2",
892
+ "discriminator": {
893
+ "propertyName": "yesNo"
894
+ },
895
+ "oneOf": [
896
+ {
897
+ "properties": {
898
+ "yesNo": {
899
+ "enum": [
900
+ "No"
901
+ ]
902
+ },
903
+ "details": {
904
+ "ntslRef": "3.2.2"
905
+ }
906
+ },
907
+ "required": [
908
+ "details"
909
+ ]
910
+ },
911
+ {
912
+ "properties": {
913
+ "yesNo": {
914
+ "enum": [
915
+ "Yes"
916
+ ]
917
+ },
918
+ "waterMeter": {
919
+ "ntslRef": "B3.2.1.1",
920
+ "discriminator": {
921
+ "propertyName": "isSupplyMetered"
922
+ },
923
+ "oneOf": [
924
+ {
925
+ "properties": {
926
+ "isSupplyMetered": {
927
+ "enum": [
928
+ "No"
929
+ ]
930
+ }
931
+ }
932
+ },
933
+ {
934
+ "properties": {
935
+ "isSupplyMetered": {
936
+ "enum": [
937
+ "Yes"
938
+ ]
939
+ }
940
+ }
941
+ }
942
+ ],
943
+ "required": [
944
+ "isSupplyMetered"
945
+ ],
946
+ "properties": {
947
+ "isSupplyMetered": {
948
+ "ntslRef": "3.2.3"
949
+ }
950
+ }
951
+ }
952
+ },
953
+ "required": [
954
+ "waterMeter"
955
+ ]
956
+ },
957
+ {
958
+ "properties": {
959
+ "yesNo": {
960
+ "enum": [
961
+ "To be connected"
962
+ ]
963
+ }
964
+ }
965
+ }
966
+ ],
967
+ "required": [
968
+ "yesNo"
969
+ ],
970
+ "properties": {
971
+ "yesNo": {
972
+ "ntslRef": "B3.2.1",
973
+ "enum": [
974
+ "Yes",
975
+ "No"
976
+ ]
977
+ }
978
+ }
979
+ }
980
+ }
981
+ },
982
+ "drainage": {
983
+ "ntslRef": "B3.3",
984
+ "required": [
985
+ "mainsSurfaceWaterDrainage",
986
+ "mainsFoulDrainage"
987
+ ],
988
+ "properties": {
989
+ "mainsSurfaceWaterDrainage": {
990
+ "ntslRef": "B3.3.1",
991
+ "discriminator": {
992
+ "propertyName": "yesNo"
993
+ },
994
+ "oneOf": [
995
+ {
996
+ "properties": {
997
+ "yesNo": {
998
+ "enum": [
999
+ "No",
1000
+ "Not known"
1001
+ ]
1002
+ }
1003
+ }
1004
+ },
1005
+ {
1006
+ "properties": {
1007
+ "yesNo": {
1008
+ "enum": [
1009
+ "Yes"
1010
+ ]
1011
+ }
1012
+ }
1013
+ },
1014
+ {
1015
+ "properties": {
1016
+ "yesNo": {
1017
+ "enum": [
1018
+ "To be connected"
1019
+ ]
1020
+ }
1021
+ }
1022
+ }
1023
+ ],
1024
+ "required": [
1025
+ "yesNo"
1026
+ ],
1027
+ "properties": {
1028
+ "yesNo": {
1029
+ "ntslRef": "B3.3.1.1",
1030
+ "enum": [
1031
+ "Yes",
1032
+ "No"
1033
+ ]
1034
+ }
1035
+ }
1036
+ },
1037
+ "mainsFoulDrainage": {
1038
+ "ntslRef": "B3.3.2",
1039
+ "discriminator": {
1040
+ "propertyName": "yesNo"
1041
+ },
1042
+ "oneOf": [
1043
+ {
1044
+ "properties": {
1045
+ "yesNo": {
1046
+ "enum": [
1047
+ "Yes"
1048
+ ]
1049
+ }
1050
+ }
1051
+ },
1052
+ {
1053
+ "properties": {
1054
+ "yesNo": {
1055
+ "enum": [
1056
+ "To be connected"
1057
+ ]
1058
+ }
1059
+ }
1060
+ },
1061
+ {
1062
+ "properties": {
1063
+ "yesNo": {
1064
+ "enum": [
1065
+ "No",
1066
+ "Not known"
1067
+ ]
1068
+ },
1069
+ "offMainsDrainageSystem": {
1070
+ "ntslRef": "B3.3.3",
1071
+ "discriminator": {
1072
+ "propertyName": "offMainsDrainageSystemType"
1073
+ },
1074
+ "oneOf": [
1075
+ {
1076
+ "properties": {
1077
+ "offMainsDrainageSystemType": {
1078
+ "enum": [
1079
+ "Sustainable Drainage System"
1080
+ ]
1081
+ }
1082
+ }
1083
+ },
1084
+ {
1085
+ "properties": {
1086
+ "offMainsDrainageSystemType": {
1087
+ "enum": [
1088
+ "Septic tank"
1089
+ ]
1090
+ }
1091
+ }
1092
+ },
1093
+ {
1094
+ "properties": {
1095
+ "offMainsDrainageSystemType": {
1096
+ "enum": [
1097
+ "Cesspit"
1098
+ ]
1099
+ }
1100
+ }
1101
+ },
1102
+ {
1103
+ "properties": {
1104
+ "offMainsDrainageSystemType": {
1105
+ "enum": [
1106
+ "Sewerage treatment plant"
1107
+ ]
1108
+ }
1109
+ }
1110
+ },
1111
+ {
1112
+ "properties": {
1113
+ "offMainsDrainageSystemType": {
1114
+ "enum": [
1115
+ "Other",
1116
+ "Not known"
1117
+ ]
1118
+ },
1119
+ "details": {
1120
+ "ntslRef": "B3.3.3.2"
1121
+ }
1122
+ },
1123
+ "required": [
1124
+ "details"
1125
+ ]
1126
+ }
1127
+ ],
1128
+ "required": [
1129
+ "offMainsDrainageSystemType"
1130
+ ],
1131
+ "properties": {
1132
+ "offMainsDrainageSystemType": {
1133
+ "ntslRef": "B3.3.3.1"
1134
+ }
1135
+ }
1136
+ }
1137
+ }
1138
+ }
1139
+ ],
1140
+ "required": [
1141
+ "yesNo"
1142
+ ],
1143
+ "properties": {
1144
+ "yesNo": {
1145
+ "ntslRef": "B3.3.2.1",
1146
+ "enum": [
1147
+ "Yes",
1148
+ "No"
1149
+ ]
1150
+ }
1151
+ }
1152
+ }
1153
+ }
1154
+ }
1155
+ }
1156
+ },
1157
+ "heating": {
1158
+ "ntslRef": "B3.4",
1159
+ "required": [
1160
+ "heatingSystem"
1161
+ ],
1162
+ "properties": {
1163
+ "heatingSystem": {
1164
+ "ntslRef": "B3.4.1",
1165
+ "discriminator": {
1166
+ "propertyName": "heatingType"
1167
+ },
1168
+ "oneOf": [
1169
+ {
1170
+ "properties": {
1171
+ "heatingType": {
1172
+ "enum": [
1173
+ "None",
1174
+ "Room heaters only"
1175
+ ]
1176
+ }
1177
+ }
1178
+ },
1179
+ {
1180
+ "properties": {
1181
+ "heatingType": {
1182
+ "enum": [
1183
+ "Central heating"
1184
+ ]
1185
+ },
1186
+ "centralHeatingDetails": {
1187
+ "ntslRef": "B3.4.3",
1188
+ "required": [
1189
+ "centralHeatingFuel"
1190
+ ],
1191
+ "properties": {
1192
+ "centralHeatingFuel": {
1193
+ "ntslRef": "B3.4.3.1",
1194
+ "discriminator": {
1195
+ "propertyName": "centralHeatingFuelType"
1196
+ },
1197
+ "oneOf": [
1198
+ {
1199
+ "properties": {
1200
+ "centralHeatingFuelType": {
1201
+ "enum": [
1202
+ "Mains gas"
1203
+ ]
1204
+ }
1205
+ }
1206
+ },
1207
+ {
1208
+ "properties": {
1209
+ "centralHeatingFuelType": {
1210
+ "enum": [
1211
+ "Electricity"
1212
+ ]
1213
+ }
1214
+ }
1215
+ },
1216
+ {
1217
+ "properties": {
1218
+ "centralHeatingFuelType": {
1219
+ "enum": [
1220
+ "Oil",
1221
+ "LPG",
1222
+ "Biomass"
1223
+ ]
1224
+ }
1225
+ }
1226
+ },
1227
+ {
1228
+ "properties": {
1229
+ "centralHeatingFuelType": {
1230
+ "enum": [
1231
+ "Other"
1232
+ ]
1233
+ }
1234
+ }
1235
+ }
1236
+ ],
1237
+ "required": [
1238
+ "centralHeatingFuelType"
1239
+ ],
1240
+ "properties": {
1241
+ "centralHeatingFuelType": {
1242
+ "ntslRef": "B3.4.3.1.1"
1243
+ }
1244
+ }
1245
+ }
1246
+ }
1247
+ }
1248
+ },
1249
+ "required": [
1250
+ "centralHeatingDetails"
1251
+ ]
1252
+ },
1253
+ {
1254
+ "properties": {
1255
+ "heatingType": {
1256
+ "enum": [
1257
+ "Community heating system"
1258
+ ]
1259
+ },
1260
+ "details": {
1261
+ "ntslRef": "B3.4.4"
1262
+ }
1263
+ },
1264
+ "required": [
1265
+ "details"
1266
+ ]
1267
+ }
1268
+ ],
1269
+ "required": [
1270
+ "heatingType"
1271
+ ],
1272
+ "properties": {
1273
+ "heatingType": {
1274
+ "ntslRef": "B3.4.1"
1275
+ }
1276
+ }
1277
+ },
1278
+ "otherHeatingFeatures": {
1279
+ "ntslRef": "B3.4.2"
1280
+ }
1281
+ }
1282
+ },
1283
+ "connectivity": {
1284
+ "ntslRef": "B3",
1285
+ "required": [
1286
+ "broadband"
1287
+ ],
1288
+ "properties": {
1289
+ "telephone": {
1290
+ "properties": {
1291
+ "yesNo": {
1292
+ "enum": [
1293
+ "Yes",
1294
+ "No"
1295
+ ]
1296
+ }
1297
+ }
1298
+ },
1299
+ "cableSatelliteTV": {
1300
+ "properties": {
1301
+ "yesNo": {
1302
+ "enum": [
1303
+ "Yes",
1304
+ "No"
1305
+ ]
1306
+ }
1307
+ }
1308
+ },
1309
+ "broadband": {
1310
+ "ntslRef": "B3.5",
1311
+ "required": [
1312
+ "typeOfConnection"
1313
+ ],
1314
+ "properties": {
1315
+ "typeOfConnection": {
1316
+ "ntslRef": "B3.5.2"
1317
+ }
1318
+ }
1319
+ },
1320
+ "mobilePhone": {
1321
+ "ntslRef": "B3.6",
1322
+ "properties": {
1323
+ "knownSignalIssues": {
1324
+ "ntslRef": "B3.6.1",
1325
+ "discriminator": {
1326
+ "propertyName": "yesNo"
1327
+ },
1328
+ "oneOf": [
1329
+ {
1330
+ "properties": {
1331
+ "yesNo": {
1332
+ "enum": [
1333
+ "No"
1334
+ ]
1335
+ }
1336
+ }
1337
+ },
1338
+ {
1339
+ "properties": {
1340
+ "yesNo": {
1341
+ "enum": [
1342
+ "Yes"
1343
+ ]
1344
+ },
1345
+ "details": {
1346
+ "ntslRef": "B3.6.1.2"
1347
+ }
1348
+ },
1349
+ "required": [
1350
+ "details"
1351
+ ]
1352
+ }
1353
+ ],
1354
+ "required": [
1355
+ "yesNo"
1356
+ ],
1357
+ "properties": {
1358
+ "yesNo": {
1359
+ "ntslRef": "B3.6.1.1"
1360
+ }
1361
+ }
1362
+ }
1363
+ }
1364
+ }
1365
+ }
1366
+ },
1367
+ "rightsAndInformalArrangements": {
1368
+ "ntslRef": "C2.2",
1369
+ "required": [
1370
+ "rightsOrArrangements"
1371
+ ],
1372
+ "properties": {
1373
+ "rightsOrArrangements": {
1374
+ "ntslRef": "C2.2.1",
1375
+ "required": [
1376
+ "publicRightOfWay"
1377
+ ],
1378
+ "properties": {
1379
+ "publicRightOfWay": {
1380
+ "ntslRef": "C2.2.1",
1381
+ "discriminator": {
1382
+ "propertyName": "yesNo"
1383
+ },
1384
+ "oneOf": [
1385
+ {
1386
+ "properties": {
1387
+ "yesNo": {
1388
+ "enum": [
1389
+ "No"
1390
+ ]
1391
+ }
1392
+ }
1393
+ },
1394
+ {
1395
+ "properties": {
1396
+ "yesNo": {
1397
+ "enum": [
1398
+ "Yes"
1399
+ ]
1400
+ },
1401
+ "details": {
1402
+ "ntslRef": "C2.2.1.2"
1403
+ }
1404
+ },
1405
+ "required": [
1406
+ "details"
1407
+ ]
1408
+ }
1409
+ ],
1410
+ "required": [
1411
+ "yesNo"
1412
+ ],
1413
+ "properties": {
1414
+ "yesNo": {
1415
+ "ntslRef": "C2.2.1.1"
1416
+ }
1417
+ }
1418
+ }
1419
+ }
1420
+ }
1421
+ }
1422
+ },
1423
+ "environmentalIssues": {
1424
+ "ntslRef": "C3.1",
1425
+ "properties": {
1426
+ "flooding": {
1427
+ "ntslRef": "C3.1.1",
1428
+ "required": [
1429
+ "floodRisk",
1430
+ "historicalFlooding"
1431
+ ],
1432
+ "properties": {
1433
+ "floodRisk": {
1434
+ "ntslRef": "C3.1.1.1",
1435
+ "discriminator": {
1436
+ "propertyName": "riskIndicator"
1437
+ },
1438
+ "oneOf": [
1439
+ {
1440
+ "properties": {
1441
+ "riskIndicator": {
1442
+ "enum": [
1443
+ "No"
1444
+ ]
1445
+ }
1446
+ }
1447
+ },
1448
+ {
1449
+ "properties": {
1450
+ "riskIndicator": {
1451
+ "enum": [
1452
+ "Yes"
1453
+ ]
1454
+ },
1455
+ "summary": {
1456
+ "ntslRef": "C3.1.1.2"
1457
+ }
1458
+ },
1459
+ "required": [
1460
+ "summary"
1461
+ ]
1462
+ }
1463
+ ],
1464
+ "required": [
1465
+ "riskIndicator"
1466
+ ],
1467
+ "properties": {
1468
+ "riskIndicator": {
1469
+ "ntslRef": "C3.1.1.1"
1470
+ }
1471
+ }
1472
+ },
1473
+ "historicalFlooding": {
1474
+ "ntslRef": "C3.1.1.2",
1475
+ "discriminator": {
1476
+ "propertyName": "hasBeenFlooded"
1477
+ },
1478
+ "oneOf": [
1479
+ {
1480
+ "properties": {
1481
+ "hasBeenFlooded": {
1482
+ "enum": [
1483
+ "No"
1484
+ ]
1485
+ }
1486
+ }
1487
+ },
1488
+ {
1489
+ "properties": {
1490
+ "hasBeenFlooded": {
1491
+ "enum": [
1492
+ "Yes"
1493
+ ]
1494
+ },
1495
+ "typeOfFlooding": {
1496
+ "ntslRef": "C3.1.1.3"
1497
+ },
1498
+ "details": {
1499
+ "ntslRef": "C3.1.1.4"
1500
+ }
1501
+ },
1502
+ "required": [
1503
+ "typeOfFlooding",
1504
+ "details"
1505
+ ]
1506
+ }
1507
+ ],
1508
+ "required": [
1509
+ "hasBeenFlooded"
1510
+ ],
1511
+ "properties": {
1512
+ "hasBeenFlooded": {
1513
+ "ntslRef": "C3.1.1.2.1"
1514
+ }
1515
+ }
1516
+ }
1517
+ }
1518
+ },
1519
+ "coalMining": {
1520
+ "ntslRef": "C6.1",
1521
+ "discriminator": {
1522
+ "propertyName": "riskIndicator"
1523
+ },
1524
+ "oneOf": [
1525
+ {
1526
+ "properties": {
1527
+ "riskIndicator": {
1528
+ "enum": [
1529
+ "No"
1530
+ ]
1531
+ }
1532
+ }
1533
+ },
1534
+ {
1535
+ "properties": {
1536
+ "riskIndicator": {
1537
+ "enum": [
1538
+ "Yes"
1539
+ ]
1540
+ },
1541
+ "summary": {
1542
+ "ntslRef": "C6.1.1"
1543
+ }
1544
+ }
1545
+ }
1546
+ ],
1547
+ "required": [
1548
+ "riskIndicator"
1549
+ ],
1550
+ "properties": {
1551
+ "riskIndicator": {
1552
+ "ntslRef": "C6.1.1"
1553
+ }
1554
+ }
1555
+ },
1556
+ "nonCoalMining": {
1557
+ "ntslRef": "C6.2",
1558
+ "discriminator": {
1559
+ "propertyName": "riskIndicator"
1560
+ },
1561
+ "oneOf": [
1562
+ {
1563
+ "properties": {
1564
+ "riskIndicator": {
1565
+ "enum": [
1566
+ "No"
1567
+ ]
1568
+ }
1569
+ }
1570
+ },
1571
+ {
1572
+ "properties": {
1573
+ "riskIndicator": {
1574
+ "enum": [
1575
+ "Yes"
1576
+ ]
1577
+ },
1578
+ "summary": {
1579
+ "ntslRef": "C6.2.2"
1580
+ }
1581
+ },
1582
+ "required": [
1583
+ "summary"
1584
+ ]
1585
+ }
1586
+ ],
1587
+ "required": [
1588
+ "riskIndicator"
1589
+ ],
1590
+ "properties": {
1591
+ "riskIndicator": {
1592
+ "ntslRef": "C6.2.1"
1593
+ }
1594
+ }
1595
+ },
1596
+ "coastalErosion": {
1597
+ "ntslRef": "C3.2",
1598
+ "discriminator": {
1599
+ "propertyName": "riskIndicator"
1600
+ },
1601
+ "oneOf": [
1602
+ {
1603
+ "properties": {
1604
+ "riskIndicator": {
1605
+ "enum": [
1606
+ "No"
1607
+ ]
1608
+ }
1609
+ }
1610
+ },
1611
+ {
1612
+ "properties": {
1613
+ "riskIndicator": {
1614
+ "enum": [
1615
+ "Yes"
1616
+ ]
1617
+ },
1618
+ "summary": {
1619
+ "ntslRef": "C3.2.2"
1620
+ }
1621
+ },
1622
+ "required": [
1623
+ "summary"
1624
+ ]
1625
+ }
1626
+ ],
1627
+ "required": [
1628
+ "riskIndicator"
1629
+ ],
1630
+ "properties": {
1631
+ "riskIndicator": {
1632
+ "ntslRef": "C3.2.1"
1633
+ }
1634
+ }
1635
+ }
1636
+ }
1637
+ }
1638
+ }
1639
+ }
1640
+ }
1641
+ }