@pdtf/schemas 0.6.3 → 0.6.4
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
|
@@ -34,20 +34,24 @@
|
|
|
34
34
|
"required": ["name", "email", "role"],
|
|
35
35
|
"properties": {
|
|
36
36
|
"name": {
|
|
37
|
-
"title": "",
|
|
37
|
+
"title": "Name",
|
|
38
38
|
"type": "object",
|
|
39
|
-
"required": ["
|
|
39
|
+
"required": ["firstName", "lastName"],
|
|
40
40
|
"properties": {
|
|
41
|
-
"
|
|
42
|
-
"title": "
|
|
41
|
+
"firstName": {
|
|
42
|
+
"title": "First name",
|
|
43
43
|
"type": "string"
|
|
44
44
|
},
|
|
45
|
-
"
|
|
46
|
-
"title": "
|
|
45
|
+
"middleName": {
|
|
46
|
+
"title": "Middle name(s)",
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
"lastName": {
|
|
50
|
+
"title": "lastName",
|
|
47
51
|
"type": "string"
|
|
48
52
|
},
|
|
49
|
-
"
|
|
50
|
-
"title": "
|
|
53
|
+
"preferredName": {
|
|
54
|
+
"title": "Preferred name / known as",
|
|
51
55
|
"type": "string"
|
|
52
56
|
}
|
|
53
57
|
}
|
|
@@ -77,8 +77,8 @@ test("correctly gets a subschema through an arrays element", () => {
|
|
|
77
77
|
});
|
|
78
78
|
|
|
79
79
|
test("correctly gets another subschema through an arrays element", () => {
|
|
80
|
-
const subschema = getSubschema("/participants/0/name/
|
|
81
|
-
expect(subschema.title).toBe("
|
|
80
|
+
const subschema = getSubschema("/participants/0/name/firstName");
|
|
81
|
+
expect(subschema.title).toBe("First name");
|
|
82
82
|
});
|
|
83
83
|
|
|
84
84
|
test("correctly gets a subschema validator which is already cached", () => {
|