forked from TBD54566975/incubation-dcx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.ts
56 lines (55 loc) · 2.35 KB
/
manifest.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
56
export type ManifestSchema = typeof schema;
export const schema = {
$id : 'https://decentralized.cx/protocol/credential-exchange/schemas/manifest',
$schema : 'http://json-schema.org/draft-07/schema',
title : 'Credential Manifest',
type : 'object',
properties : {
id : { type: 'string'},
name : { type: 'string'},
description : { type: 'string'},
spec_version : { type: 'string'},
issuer : {
type : 'object',
required : ['id'],
properties : {
id : { type: 'string' },
name : { type: 'string' },
styles : { $ref: 'https://identity.foundation/wallet-rendering/schemas/entity-styles.json' },
},
additionalProperties: false,
},
output_descriptors: {
type : 'array',
items : {
type : 'object',
required : ['id', 'schema'],
properties : {
id : { type: 'string' },
name : { type: 'string' },
description : { type: 'string' },
schema : { type: 'string' },
display : {
type : 'object',
properties : {
title : { $ref: 'https://identity.foundation/wallet-rendering/schemas/display-mapping-object.json' },
subtitle : { $ref: 'https://identity.foundation/wallet-rendering/schemas/display-mapping-object.json' },
description : { $ref: 'https://identity.foundation/wallet-rendering/schemas/display-mapping-object.json' },
properties : {
type : 'array',
items : { $ref: 'https://identity.foundation/wallet-rendering/schemas/labeled-display-mapping-object.json' },
},
},
additionalProperties: false,
},
styles: { $ref: 'https://identity.foundation/wallet-rendering/schemas/entity-styles.json' },
},
additionalProperties: false,
},
},
presentation_definition : { $ref: 'https://identity.foundation/presentation-exchange/schemas/presentation-definition.json' },
format : { $ref: 'https://identity.foundation/claim-format-registry/schemas/presentation-definition-claim-format-designations.json' },
},
required : ['id', 'spec_version', 'issuer', 'output_descriptors'],
additionalProperties : false,
};