@pdtf/schemas 0.5.12 → 0.5.13
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 +2 -4
- package/package.json +1 -1
- package/src/schemas/pdtf-verified-claims.json +28 -28
- package/src/schemas/pdtf-claim.json +0 -27
package/index.js
CHANGED
|
@@ -8,8 +8,7 @@ const baspiLegalInformation = require("./src/schemas/baspi-b-legal-information.j
|
|
|
8
8
|
const energyPerformanceCertificate = require("./src/schemas/energy-performance-certificate.json");
|
|
9
9
|
const titleDeed = require("./src/schemas/title-deed.json");
|
|
10
10
|
const geoJson = require("./src/schemas/GeoJSON.json");
|
|
11
|
-
const
|
|
12
|
-
const verifiedClaim = require("./src/schemas/verified_claims-12.json");
|
|
11
|
+
const verifiedClaimsSchema = require("./src/schemas/pdtf-verified-claims.json");
|
|
13
12
|
|
|
14
13
|
const subSchemas = {
|
|
15
14
|
"https://homebuyingandsellinggroup.co.uk/schemas/baspi-a-material-facts.json":
|
|
@@ -98,6 +97,5 @@ module.exports = {
|
|
|
98
97
|
getSubschema,
|
|
99
98
|
getSubschemaValidator,
|
|
100
99
|
getTitleAtPath,
|
|
101
|
-
|
|
102
|
-
verifiedClaim
|
|
100
|
+
verifiedClaimsSchema
|
|
103
101
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://
|
|
4
|
-
"
|
|
3
|
+
"$id": "https://homebuyingandsellinggroup.co.uk/schemas/pdtf-verified-claims.json",
|
|
4
|
+
"definitions": {
|
|
5
5
|
"date_type": {
|
|
6
6
|
"type": "string",
|
|
7
7
|
"format": "date"
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"type": "string"
|
|
21
21
|
},
|
|
22
22
|
"document_number": {
|
|
23
|
-
"$ref": "
|
|
23
|
+
"$ref": "#/definitions/document_number"
|
|
24
24
|
},
|
|
25
25
|
"number": {
|
|
26
|
-
"$ref": "
|
|
26
|
+
"$ref": "#/definitions/document_number"
|
|
27
27
|
},
|
|
28
28
|
"personal_number": {
|
|
29
29
|
"type": "string"
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"type": "string"
|
|
33
33
|
},
|
|
34
34
|
"date_of_issuance": {
|
|
35
|
-
"$ref": "
|
|
35
|
+
"$ref": "#/definitions/date_type"
|
|
36
36
|
},
|
|
37
37
|
"date_of_expiry": {
|
|
38
|
-
"$ref": "
|
|
38
|
+
"$ref": "#/definitions/date_type"
|
|
39
39
|
},
|
|
40
40
|
"issuer": {
|
|
41
41
|
"type": "object",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"enum": ["document", "electronic_record", "vouch"]
|
|
96
96
|
},
|
|
97
97
|
"attachments": {
|
|
98
|
-
"$ref": "
|
|
98
|
+
"$ref": "#/definitions/attachments"
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
"required": ["type"],
|
|
@@ -111,10 +111,10 @@
|
|
|
111
111
|
"then": {
|
|
112
112
|
"properties": {
|
|
113
113
|
"validation_method": {
|
|
114
|
-
"$ref": "
|
|
114
|
+
"$ref": "#/definitions/validation_method"
|
|
115
115
|
},
|
|
116
116
|
"verification_method": {
|
|
117
|
-
"$ref": "
|
|
117
|
+
"$ref": "#/definitions/verification_method"
|
|
118
118
|
},
|
|
119
119
|
"verifier": {
|
|
120
120
|
"type": "object",
|
|
@@ -128,10 +128,10 @@
|
|
|
128
128
|
}
|
|
129
129
|
},
|
|
130
130
|
"time": {
|
|
131
|
-
"$ref": "
|
|
131
|
+
"$ref": "#/definitions/time_type"
|
|
132
132
|
},
|
|
133
133
|
"document_details": {
|
|
134
|
-
"$ref": "
|
|
134
|
+
"$ref": "#/definitions/document_details"
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
},
|
|
@@ -148,10 +148,10 @@
|
|
|
148
148
|
"then": {
|
|
149
149
|
"properties": {
|
|
150
150
|
"validation_method": {
|
|
151
|
-
"$ref": "
|
|
151
|
+
"$ref": "#/definitions/validation_method"
|
|
152
152
|
},
|
|
153
153
|
"verification_method": {
|
|
154
|
-
"$ref": "
|
|
154
|
+
"$ref": "#/definitions/verification_method"
|
|
155
155
|
},
|
|
156
156
|
"verifier": {
|
|
157
157
|
"type": "object",
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
}
|
|
166
166
|
},
|
|
167
167
|
"time": {
|
|
168
|
-
"$ref": "
|
|
168
|
+
"$ref": "#/definitions/time_type"
|
|
169
169
|
},
|
|
170
170
|
"record": {
|
|
171
171
|
"type": "object",
|
|
@@ -177,10 +177,10 @@
|
|
|
177
177
|
"type": "string"
|
|
178
178
|
},
|
|
179
179
|
"created_at": {
|
|
180
|
-
"$ref": "
|
|
180
|
+
"$ref": "#/definitions/date_type"
|
|
181
181
|
},
|
|
182
182
|
"date_of_expiry": {
|
|
183
|
-
"$ref": "
|
|
183
|
+
"$ref": "#/definitions/date_type"
|
|
184
184
|
},
|
|
185
185
|
"source": {
|
|
186
186
|
"type": "object",
|
|
@@ -231,10 +231,10 @@
|
|
|
231
231
|
"then": {
|
|
232
232
|
"properties": {
|
|
233
233
|
"validation_method": {
|
|
234
|
-
"$ref": "
|
|
234
|
+
"$ref": "#/definitions/validation_method"
|
|
235
235
|
},
|
|
236
236
|
"verification_method": {
|
|
237
|
-
"$ref": "
|
|
237
|
+
"$ref": "#/definitions/verification_method"
|
|
238
238
|
},
|
|
239
239
|
"verifier": {
|
|
240
240
|
"type": "object",
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
}
|
|
249
249
|
},
|
|
250
250
|
"time": {
|
|
251
|
-
"$ref": "
|
|
251
|
+
"$ref": "#/definitions/time_type"
|
|
252
252
|
},
|
|
253
253
|
"attestation": {
|
|
254
254
|
"type": "object",
|
|
@@ -264,10 +264,10 @@
|
|
|
264
264
|
"type": "string"
|
|
265
265
|
},
|
|
266
266
|
"date_of_issuance": {
|
|
267
|
-
"$ref": "
|
|
267
|
+
"$ref": "#/definitions/date_type"
|
|
268
268
|
},
|
|
269
269
|
"date_of_expiry": {
|
|
270
|
-
"$ref": "
|
|
270
|
+
"$ref": "#/definitions/date_type"
|
|
271
271
|
},
|
|
272
272
|
"voucher": {
|
|
273
273
|
"type": "object",
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
"type": "string"
|
|
277
277
|
},
|
|
278
278
|
"birthdate": {
|
|
279
|
-
"$ref": "
|
|
279
|
+
"$ref": "#/definitions/date_type"
|
|
280
280
|
},
|
|
281
281
|
"formatted": {
|
|
282
282
|
"type": "string"
|
|
@@ -332,7 +332,7 @@
|
|
|
332
332
|
"type": "string"
|
|
333
333
|
},
|
|
334
334
|
"digest": {
|
|
335
|
-
"$ref": "
|
|
335
|
+
"$ref": "#/definitions/digest"
|
|
336
336
|
},
|
|
337
337
|
"url": {
|
|
338
338
|
"type": "string",
|
|
@@ -352,7 +352,7 @@
|
|
|
352
352
|
"type": "array",
|
|
353
353
|
"minItems": 1,
|
|
354
354
|
"items": {
|
|
355
|
-
"$ref": "
|
|
355
|
+
"$ref": "#/definitions/external_attachment"
|
|
356
356
|
}
|
|
357
357
|
},
|
|
358
358
|
"verified_claims_def": {
|
|
@@ -366,7 +366,7 @@
|
|
|
366
366
|
"const": "uk_pdtf"
|
|
367
367
|
},
|
|
368
368
|
"time": {
|
|
369
|
-
"$ref": "
|
|
369
|
+
"$ref": "#/definitions/time_type"
|
|
370
370
|
},
|
|
371
371
|
"evidence": {
|
|
372
372
|
"type": "array",
|
|
@@ -374,7 +374,7 @@
|
|
|
374
374
|
"items": {
|
|
375
375
|
"oneOf": [
|
|
376
376
|
{
|
|
377
|
-
"$ref": "
|
|
377
|
+
"$ref": "#/definitions/evidence"
|
|
378
378
|
}
|
|
379
379
|
]
|
|
380
380
|
}
|
|
@@ -402,12 +402,12 @@
|
|
|
402
402
|
"verified_claims": {
|
|
403
403
|
"anyOf": [
|
|
404
404
|
{
|
|
405
|
-
"$ref": "
|
|
405
|
+
"$ref": "#/definitions/verified_claims_def"
|
|
406
406
|
},
|
|
407
407
|
{
|
|
408
408
|
"type": "array",
|
|
409
409
|
"items": {
|
|
410
|
-
"$ref": "
|
|
410
|
+
"$ref": "#/definitions/verified_claims_def"
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
]
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://homebuyingandsellinggroup.co.uk/schemas/pdtf-claim.json",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"title": "Property Data Trust Framework Claim",
|
|
6
|
-
"description": "PDTF verified claims are implemented in accordance with the OpenID Connect Verified Claims model, within which the actual claims object should conform to this schema to ensure the necessary metadata is attached",
|
|
7
|
-
"properties": {
|
|
8
|
-
"schema": {
|
|
9
|
-
"type": "string",
|
|
10
|
-
"format": "uri",
|
|
11
|
-
"description": "The $id of the JSONSchema against which the path and data have been generated, for example https://homebuyingandsellinggroup.co.uk/schemas/0.1.0/pdtf.json"
|
|
12
|
-
},
|
|
13
|
-
"path": {
|
|
14
|
-
"type": "string",
|
|
15
|
-
"description": "The JSON Pointer reference to the location in the schema corresponding to the new data as defined at https://datatracker.ietf.org/doc/html/rfc6901, for example /propertyPack/propertyToBeSold/address"
|
|
16
|
-
},
|
|
17
|
-
"data": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"description": "A JSON object representing the segment of the overall data structure which is being provided."
|
|
20
|
-
},
|
|
21
|
-
"attribution": {
|
|
22
|
-
"type": "string",
|
|
23
|
-
"description": "Details of any attribution, copyright or licencing requirements relating to the provided data"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"required": ["schema", "path", "data"]
|
|
27
|
-
}
|