generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
application.ts
55 lines (55 loc) · 1.33 KB
/
application.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
export const schema = {
$schema: 'http://json-schema.org/draft-07/schema#',
$id: 'https://tblend.io/protocol/credential-issuance/schemas/presentation',
type: 'object',
properties: {
'@context': {
type: 'array',
items: {
type: 'string',
},
description: 'The @context of the presentation',
},
type: {
type: 'array',
items: {
type: 'string',
},
description: 'The type property of the presentation',
},
presentation_submission: {
type: 'object',
properties: {
definition_id: {
type: 'string',
},
descriptor_map: {
type: 'array',
items: {
type: 'object',
properties: {
id: {
type: 'string',
},
path: {
type: 'string',
},
format: {
type: 'string',
},
},
},
},
},
description: 'The Verifiable Credentials that represent your application',
},
verifiableCredential: {
type: 'array',
items: {
type: 'string',
},
description: 'The Verifiable Credentials to present in JWT format',
},
},
required: ['@context', 'type', 'presentation_submission', 'verifiableCredential'],
};