@pdtf/schemas 0.9.0 → 0.9.1

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.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -598,7 +598,7 @@
598
598
  },
599
599
  "required": ["hasOver17s"],
600
600
  "dependencies": {
601
- "yesNo": {
601
+ "hasOver17s": {
602
602
  "oneOf": [
603
603
  {
604
604
  "properties": {
@@ -181,4 +181,10 @@ test("correctly gets titles across schemas, arrays and non-existient title prope
181
181
  "/propertyPack/energyPerformanceCertificate/certificate/currentEnergyRating"
182
182
  )
183
183
  ).toBe("Current energy rating");
184
+ expect(
185
+ getTitleAtPath(
186
+ transactionSchema,
187
+ "/propertyPack/additionalLegalInfo/occupiers/otherOver17sAtProperty/over17sNames/0/firstName"
188
+ )
189
+ ).toBe("First Name");
184
190
  });