@pdtf/schemas 0.10.6 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdtf/schemas",
3
- "version": "0.10.6",
3
+ "version": "0.10.7",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -1680,9 +1680,9 @@
1680
1680
  "properties": {
1681
1681
  "hasBeenFlooded": {
1682
1682
  "enum": ["No"]
1683
- },
1684
- "additionalProperties": false
1685
- }
1683
+ }
1684
+ },
1685
+ "additionalProperties": false
1686
1686
  },
1687
1687
  {
1688
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"