-
Notifications
You must be signed in to change notification settings - Fork 42
/
instances-schema.json
59 lines (59 loc) · 2.05 KB
/
instances-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
{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"properties": {
"updated": {
"type": "string",
"format": "date",
"$comment": "List generation date, in ISO 8601 format."
},
"instances": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri",
"$comment": "URL to Libreddit instance on the internet."
},
"country": {
"type": "string",
"$comment": "Geographical location of Libreddit instance."
},
"version": {
"type": "string",
"pattern": "^v([0-9]+\\.){2}[0-9]+$",
"$comment": "Version of Libreddit running on this instance."
},
"cloudflare": {
"type": "boolean",
"$comment": "Specifies whether or not the instance sits behind Cloudflare. Cloudflare may monitor traffic to and from this instance."
},
"onion": {
"type": "string",
"format": "uri",
"$comment": "URI of Libreddit instance on TOR."
},
"i2p": {
"type": "string",
"format": "uri",
"$comment": "URI of Libreddit instance on I2P."
},
"description": {
"type": "string",
"$comment": "Description of instance."
}
},
"required": [
"country",
"version"
]
}
}
},
"required": [
"instances",
"updated"
]
}