-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdock.json
49 lines (49 loc) · 1.52 KB
/
dock.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
{
"$id": "https://getdock.github.io/schemas/dock.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"$comment": "Base schema required for every package that is participating in Dock protocol",
"type": "object",
"properties": {
"$schema": {
"type": "string",
"$comment": "Key to identify dock-compatible schema that was used to build given data package",
"example": "https://getdock.github.io/schemas/dock.json"
},
"$originAddress": {
"type": "string",
"format": "ethAddress",
"example": "0x1234567890AbCdEf000000000000000000000000",
"$comment": "Ethereum address of the data creator. This should always remain the same for every package repackaging"
},
"$recipientAddress": {
"type": "string",
"format": "ethAddress",
"example": "0x1234567890AbCdEf000000000000000000000000",
"$comment": "Designated recipient address. This should always be changed on every package resending to match the recipient"
},
"$createdAt": {
"type": "string",
"format": "date-time",
"example": "2010-10-10T12:20:12.999Z",
"$comment": "Date when original package was created. This should remain unchanged during repackage."
},
"$data": {
"$comment": "This is where package payload goes.",
"anyOf": [
{
"type": "array"
},
{
"type": "object"
}
]
}
},
"required": [
"$schema",
"$originAddress",
"$recipientAddress",
"$createdAt",
"$data"
]
}