@pdtf/schemas 0.6.4 → 0.6.5

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.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "claims": {
22
22
  "/propertyPack/materialFacts/address": {
23
- "address1": "3 The Hollys",
24
- "address2": "Birtley",
23
+ "line1": "3 The Hollys",
24
+ "line2": "Birtley",
25
25
  "town": "CHESTER LE STREET",
26
26
  "county": "County Durham",
27
27
  "postcode": "DH3 1QN"
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://homebuyingandsellinggroup.co.uk/schemas/pdtf-transaction.json",
2
+ "$schema": "https://raw.githubusercontent.com/Property-Data-Trust-Framework/schemas/master/src/schemas/pdtf-transaction.json",
3
3
  "transactionId": "3e4666bf-d5e5-4aa7-b8ce-cefe41c7568a",
4
4
  "status": "active",
5
5
  "participants": [
@@ -11,7 +11,7 @@
11
11
  "dateOfBirth": "1975-12-25",
12
12
  "phone": "07777 222333",
13
13
  "email": "peter@theseller.com",
14
- "address": { "address1": "47 Park Road", "postcode": "AL3 5AF" },
14
+ "address": { "line1": "47 Park Road", "postcode": "AL3 5AF" },
15
15
  "role": "Seller"
16
16
  }
17
17
  ],
@@ -19,8 +19,8 @@
19
19
  "materialFacts": {
20
20
  "uprn": 1241304304,
21
21
  "address": {
22
- "address1": "47 Park Road",
23
- "address2": "",
22
+ "line1": "47 Park Road",
23
+ "line2": "",
24
24
  "town": "HARPENDEN",
25
25
  "county": "Herts",
26
26
  "postcode": "AL3 5AF"
@@ -1625,12 +1625,12 @@
1625
1625
  "address": {
1626
1626
  "type": "object",
1627
1627
  "properties": {
1628
- "address1": {
1628
+ "line1": {
1629
1629
  "title": "Address 1",
1630
1630
  "type": "string",
1631
1631
  "minLength": 1
1632
1632
  },
1633
- "address2": {
1633
+ "line2": {
1634
1634
  "title": "Address 2",
1635
1635
  "type": "string"
1636
1636
  },
@@ -1648,7 +1648,7 @@
1648
1648
  "minLength": 1
1649
1649
  }
1650
1650
  },
1651
- "required": ["address1", "postcode"]
1651
+ "required": ["line1", "postcode"]
1652
1652
  },
1653
1653
  "contactDetails": {
1654
1654
  "type": "object",
@@ -917,11 +917,11 @@
917
917
  "address": {
918
918
  "type": "object",
919
919
  "properties": {
920
- "address1": {
920
+ "line1": {
921
921
  "title": "Address 1",
922
922
  "type": "string"
923
923
  },
924
- "address2": {
924
+ "line2": {
925
925
  "title": "Address 2",
926
926
  "type": "string"
927
927
  },
@@ -938,7 +938,7 @@
938
938
  "type": "string"
939
939
  }
940
940
  },
941
- "required": ["address1", "postcode"]
941
+ "required": ["line1", "postcode"]
942
942
  }
943
943
  }
944
944
  }
@@ -239,12 +239,12 @@
239
239
  "address": {
240
240
  "type": "object",
241
241
  "properties": {
242
- "address1": {
242
+ "line1": {
243
243
  "title": "Address 1",
244
244
  "type": "string",
245
245
  "minLength": 1
246
246
  },
247
- "address2": {
247
+ "line2": {
248
248
  "title": "Address 2",
249
249
  "type": "string"
250
250
  },
@@ -262,7 +262,7 @@
262
262
  "minLength": 1
263
263
  }
264
264
  },
265
- "required": ["address1", "postcode"]
265
+ "required": ["line1", "postcode"]
266
266
  },
267
267
  "riskIndicatorAndSearch": {
268
268
  "type": "object",
@@ -273,7 +273,7 @@
273
273
  "enum": ["Yes", "No"]
274
274
  }
275
275
  },
276
- "required": ["address1", "postcode"]
276
+ "required": ["hasRisk"]
277
277
  }
278
278
  }
279
279
  }