@pdtf/schemas 0.5.10 → 0.5.11
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/index.js
CHANGED
|
@@ -52,6 +52,7 @@ const getTitleAtPath = (schema, path, rootPath = path) => {
|
|
|
52
52
|
let pathArray = path.split("/").slice(1);
|
|
53
53
|
if (pathArray.length === 1 && pathArray[0] === "") {
|
|
54
54
|
if (schema.title) return schema.title;
|
|
55
|
+
if (schema.title === "") return ""; // deliberately blank
|
|
55
56
|
// no 'title' property present, so we use the property name to create a readable descriptor
|
|
56
57
|
const propertyName = rootPath
|
|
57
58
|
.split("/")
|
package/package.json
CHANGED
|
@@ -41,8 +41,15 @@
|
|
|
41
41
|
"baspiRef": "A1.2",
|
|
42
42
|
"RDSRef": "Metadata/PotentialDelays,Metadata/PotentialDelayDuration",
|
|
43
43
|
"title": "Delay Factors",
|
|
44
|
-
"
|
|
45
|
-
"
|
|
44
|
+
"type": "object",
|
|
45
|
+
"required": ["hasDelayFactors"],
|
|
46
|
+
"properties": {
|
|
47
|
+
"hasDelayFactors": {
|
|
48
|
+
"title": "Are you aware of any factors which might delay or complicate the sale?",
|
|
49
|
+
"description": "E.g. family split, pending application for grant of probate, absent seller or unregistered title? If yes, provide details and likely timescale for delay (if known)",
|
|
50
|
+
"$ref": "#/$defs/yesNoDetailIfYes"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
46
53
|
},
|
|
47
54
|
"ownership": {
|
|
48
55
|
"baspiRef": "A1.3",
|
|
@@ -22,62 +22,63 @@
|
|
|
22
22
|
"properties": {
|
|
23
23
|
"sellers": {
|
|
24
24
|
"RDSRef": "",
|
|
25
|
-
"title": "
|
|
26
|
-
"type": "
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
"dateOfBirth",
|
|
34
|
-
"mobileNumber",
|
|
35
|
-
"email",
|
|
36
|
-
"address"
|
|
37
|
-
],
|
|
38
|
-
"properties": {
|
|
39
|
-
"name": {
|
|
40
|
-
"title": "Name",
|
|
25
|
+
"title": "The sellers",
|
|
26
|
+
"type": "object",
|
|
27
|
+
"properties": {
|
|
28
|
+
"sellerInformation": {
|
|
29
|
+
"title": "Information about the sellers",
|
|
30
|
+
"type": "array",
|
|
31
|
+
"minItems": 1,
|
|
32
|
+
"items": {
|
|
41
33
|
"type": "object",
|
|
42
|
-
"
|
|
34
|
+
"title": "Seller Details",
|
|
35
|
+
"required": [
|
|
36
|
+
"name",
|
|
37
|
+
"dateOfBirth",
|
|
38
|
+
"mobileNumber",
|
|
39
|
+
"email",
|
|
40
|
+
"address"
|
|
41
|
+
],
|
|
43
42
|
"properties": {
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
43
|
+
"name": {
|
|
44
|
+
"title": "Name",
|
|
45
|
+
"type": "object",
|
|
46
|
+
"required": ["firstName", "lastName"],
|
|
47
|
+
"properties": {
|
|
48
|
+
"firstName": {
|
|
49
|
+
"RDSRef": "",
|
|
50
|
+
"title": "First name",
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"middleNames": {
|
|
54
|
+
"title": "Middle name(s)",
|
|
55
|
+
"type": "string"
|
|
56
|
+
},
|
|
57
|
+
"lastName": {
|
|
58
|
+
"title": "Last name",
|
|
59
|
+
"type": "string"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
48
62
|
},
|
|
49
|
-
"
|
|
50
|
-
"title": "
|
|
51
|
-
"type": "string"
|
|
63
|
+
"dateOfBirth": {
|
|
64
|
+
"title": "Date of birth",
|
|
65
|
+
"type": "string",
|
|
66
|
+
"format": "date"
|
|
52
67
|
},
|
|
53
|
-
"
|
|
54
|
-
"title": "
|
|
68
|
+
"mobileNumber": {
|
|
69
|
+
"title": "Mobile number",
|
|
55
70
|
"type": "string"
|
|
71
|
+
},
|
|
72
|
+
"email": {
|
|
73
|
+
"title": "Email address",
|
|
74
|
+
"type": "string",
|
|
75
|
+
"format": "email"
|
|
76
|
+
},
|
|
77
|
+
"address": {
|
|
78
|
+
"title": "Address",
|
|
79
|
+
"$ref": "#/$defs/address"
|
|
56
80
|
}
|
|
57
81
|
}
|
|
58
|
-
},
|
|
59
|
-
"dateOfBirth": {
|
|
60
|
-
"title": "Date of birth",
|
|
61
|
-
"type": "string",
|
|
62
|
-
"format": "date"
|
|
63
|
-
},
|
|
64
|
-
"mobileNumber": {
|
|
65
|
-
"title": "Mobile number",
|
|
66
|
-
"type": "string"
|
|
67
|
-
},
|
|
68
|
-
"email": {
|
|
69
|
-
"title": "Email address",
|
|
70
|
-
"type": "string",
|
|
71
|
-
"format": "email"
|
|
72
|
-
},
|
|
73
|
-
"address": {
|
|
74
|
-
"title": "Address",
|
|
75
|
-
"$ref": "#/$defs/address"
|
|
76
|
-
},
|
|
77
|
-
"amlCheckResult": {
|
|
78
|
-
"title": "AML check result",
|
|
79
|
-
"type": "string",
|
|
80
|
-
"enum": ["clear", "consider"]
|
|
81
82
|
}
|
|
82
83
|
}
|
|
83
84
|
}
|