forked from LunarClient/ServerMappings
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservers.schema.json
More file actions
40 lines (40 loc) · 1.18 KB
/
servers.schema.json
File metadata and controls
40 lines (40 loc) · 1.18 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
{
"type": "array",
"uniqueItems": true,
"items": {
"type": "object",
"additionalProperties": false,
"required": ["id", "name", "addresses"],
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z0-9_.-]+$"
},
"name": {
"type": "string"
},
"addresses": {
"type": "array",
"uniqueItems": true,
"items": { "$ref": "#/definitions/ServerAddress" }
},
"primaryAddress": { "$ref": "#/definitions/ServerAddress" },
"minecraftVersions": {
"type": "array",
"uniqueItems": true,
"items": { "$ref": "#/definitions/MinecraftVersion" }
},
"primaryMinecraftVersion": { "$ref": "#/definitions/MinecraftVersion" }
}
},
"definitions": {
"ServerAddress": {
"type": "string",
"pattern": "^[a-z0-9_.-]+$"
},
"MinecraftVersion": {
"type": "string",
"enum": ["1.7", "1.8", "1.12", "1.16", "1.17", "1.18", "1.19"]
}
}
}