@pdtf/schemas 0.10.5 → 0.10.7
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
CHANGED
|
@@ -190,6 +190,7 @@
|
|
|
190
190
|
"$ref": "#/$defs/yesNoDetailIfNo"
|
|
191
191
|
},
|
|
192
192
|
"managedFreeholdOrCommonhold": {
|
|
193
|
+
"title": "Managed Freehold or Commonhold",
|
|
193
194
|
"type": "object",
|
|
194
195
|
"properties": {
|
|
195
196
|
"isManagedFreeholdOrCommonhold": {
|
|
@@ -267,13 +268,18 @@
|
|
|
267
268
|
"freeholderContactDetails",
|
|
268
269
|
"managingAgentContactDetails",
|
|
269
270
|
"managementCompanyDirectorRequirement"
|
|
270
|
-
]
|
|
271
|
+
],
|
|
272
|
+
"additionalProperties": false
|
|
271
273
|
}
|
|
272
274
|
]
|
|
273
275
|
}
|
|
274
276
|
}
|
|
275
277
|
}
|
|
276
278
|
},
|
|
279
|
+
"required": [
|
|
280
|
+
"wholeFreeholdForSale",
|
|
281
|
+
"managedFreeholdOrCommonhold"
|
|
282
|
+
],
|
|
277
283
|
"additionalProperties": false
|
|
278
284
|
},
|
|
279
285
|
{
|
|
@@ -282,6 +288,7 @@
|
|
|
282
288
|
"enum": ["Leasehold"]
|
|
283
289
|
},
|
|
284
290
|
"sharedOwnership": {
|
|
291
|
+
"title": "Shared ownership",
|
|
285
292
|
"type": "object",
|
|
286
293
|
"properties": {
|
|
287
294
|
"isSharedOwnership": {
|
|
@@ -331,7 +338,8 @@
|
|
|
331
338
|
"sharedOwnershipPercentage",
|
|
332
339
|
"sharedOwnershipRent",
|
|
333
340
|
"sharedOwnershipRentFrequency"
|
|
334
|
-
]
|
|
341
|
+
],
|
|
342
|
+
"additionalProperties": false
|
|
335
343
|
}
|
|
336
344
|
]
|
|
337
345
|
}
|
|
@@ -419,7 +427,8 @@
|
|
|
419
427
|
"freeholderContactDetails",
|
|
420
428
|
"managingAgentContactDetails",
|
|
421
429
|
"managementCompanyDirectorRequirement"
|
|
422
|
-
]
|
|
430
|
+
],
|
|
431
|
+
"additionalProperties": false
|
|
423
432
|
},
|
|
424
433
|
{
|
|
425
434
|
"properties": {
|
|
@@ -1671,9 +1680,9 @@
|
|
|
1671
1680
|
"properties": {
|
|
1672
1681
|
"hasBeenFlooded": {
|
|
1673
1682
|
"enum": ["No"]
|
|
1674
|
-
}
|
|
1675
|
-
|
|
1676
|
-
|
|
1683
|
+
}
|
|
1684
|
+
},
|
|
1685
|
+
"additionalProperties": false
|
|
1677
1686
|
},
|
|
1678
1687
|
{
|
|
1679
1688
|
"properties": {
|
|
@@ -110,6 +110,14 @@ test("correctly gets yet, yet another subschema through a dependency", () => {
|
|
|
110
110
|
expect(subschema.enum).toStrictEqual(["Yes", "No"]);
|
|
111
111
|
});
|
|
112
112
|
|
|
113
|
+
test("correctly gets yet, yet, yet another subschema through a dependency", () => {
|
|
114
|
+
const subschema = getSubschema(
|
|
115
|
+
"/propertyPack/materialFacts/otherIssues/flooding/typeOfFlooding/groundWater/yesNo"
|
|
116
|
+
);
|
|
117
|
+
expect(subschema.type).toBe("string");
|
|
118
|
+
expect(subschema.enum).toStrictEqual(["Yes", "No"]);
|
|
119
|
+
});
|
|
120
|
+
|
|
113
121
|
test("correctly gets a subschema validator which is already cached", () => {
|
|
114
122
|
const validator = getSubschemaValidator(
|
|
115
123
|
"/propertyPack/energyPerformanceCertificate"
|