forked from cardano-foundation/CIPs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cip-0119.common.schema.json
92 lines (92 loc) · 3.46 KB
/
cip-0119.common.schema.json
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"title": "CIP-119 Common",
"description": "Metadata document for Cardano DReps, extending CIP-100",
"type": "object",
"required": ["hashAlgorithm", "body"],
"properties": {
"hashAlgorithm": {
"$ref": "#/definitions/hashAlgorithm"
},
"body": {
"$ref": "#/definitions/body"
}
},
"definitions": {
"hashAlgorithm": {
"type": "string",
"enum": ["blake2b-256"],
"title": "Hash Algorithm",
"description": "The algorithm used to authenticate this document externally (CIP-100)"
},
"body": {
"title": "Body",
"description": "The body of the metadata document (CIP-100)",
"type": "object",
"required": ["givenName"],
"properties": {
"paymentAddress": {
"type": "string",
"title": "Payment Address",
"description": "A Cardano Bech32 encoded payment address."
},
"givenName": {
"title": "Given Name",
"$ref": "https://schema.org/givenName"
},
"image": {
"title": "Image",
"$ref": "https://schema.org/image"
},
"objectives": {
"type": "string",
"title": "Objectives",
"description": "A short description of what the person believes and what they want to achieve as a DRep, maximum of 1000 characters."
},
"motivations": {
"type": "string",
"title": "Motivations",
"description": "A short description of why they want to be a DRep, what personal and professional experiences have they had that have driven them to register, maximum 1000."
},
"qualifications": {
"type": "string",
"title": "Qualifications",
"description": "A space where the registrant can to list the qualifications they hold that are relevant to their role as a DRep, maximum 1000."
},
"doNotList": {
"type": "string",
"enum": ["true", "false"],
"title": "Do Not List",
"description": "A true or false value means that the DRep does not want to show up in tooling that displays DReps."
},
"references": {
"type": "array",
"title": "References",
"items": {
"$ref": "#/definitions/reference"
}
}
}
},
"reference": {
"title": "Reference",
"description": "A reference to a document",
"type": "object",
"required": ["type", "label", "uri"],
"properties": {
"type": {
"type": "string",
"enum": ["GovernanceMetadata", "Other", "Link", "Identity"],
"title": "Type"
},
"label": {
"type": "string",
"title": "Label"
},
"uri": {
"type": "string",
"title": "URI"
}
}
}
}
}