Repository navigation
Expand file tree
/
Copy pathvote.json
More file actions
61 lines (61 loc) · 2.58 KB
/
Copy pathvote.json
File metadata and controls
61 lines (61 loc) · 2.58 KB
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
{
"lexicon": 1,
"id": "social.pmsky.vote",
"defs": {
"main": {
"type": "record",
"key": "tid",
"record": {
"type": "object",
"description": "A vote record, representing a user's approval or disapproval of the referenced resource. The resource my be a proposal, a post, a web page, or anything that can be agreed or disagreed with.",
"properties": {
"src": {
"type": "string",
"format": "did",
"description": "the account creating the vote, not necessarily the same as the user who voted"
},
"uri": {
"type": "string",
"format": "uri",
"description": "AT URI of the record, repository (account), or other resource that this vote applies to."
},
"cid": {
"type": "string",
"format": "cid",
"description": "Optionally, CID specifying the specific version of 'uri' resource this vote applies to."
},
"val": {
"type": "integer",
"description": "The value of the vote. The exact meaning depends on what is being voted on, but generally '+1' means 'approval', -1 means 'disapproval', and 0 indicates 'neutrality'."
},
"reasons": {
"type": "array",
"items": {
"type": "string"
},
"description": "An optional array of predefined reasons justifying the vote."
},
"aid": {
"type": "string",
"description": "The persistent, anonymous identifier for the user casting the vote."
},
"cts": {
"type": "string",
"format": "datetime",
"description": "Timestamp when this vote was created."
},
"sig": {
"type": "bytes",
"description": "Signature of dag-cbor encoded vote."
}
},
"required": [
"src",
"uri",
"val",
"cts"
]
}
}
}
}