-
Notifications
You must be signed in to change notification settings - Fork 1
/
module-config-schema.json
50 lines (49 loc) · 1.44 KB
/
module-config-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
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://raw.githubusercontent.com/anweisen/DyCloud/master/module-config-schema.json",
"title": "DyCloud Module Configuration",
"description": "Configuration of a DyCloud module",
"type": "object",
"required": [ "name", "version", "author", "main" ],
"properties": {
"name": {
"type": "string",
"description": "The name of this module"
},
"version": {
"type": "string",
"description": "The current version of this module. Example: 1.2.7",
"pattern": "^(?:(\\d+)\\.)?(?:(\\d+)\\.)?(\\d+)$"
},
"author": {
"type": "string",
"description": "The version of this module"
},
"main": {
"type": "string",
"description": "The main class name of this module, must extend CloudModule"
},
"description": {
"type": "string",
"description": "A short, human readable description of what this module does"
},
"website": {
"type": "string",
"description": "A url of the website of this module"
},
"depends": {
"type": "array",
"description": "A list with modules names which have to be loaded before this"
},
"environment": {
"enum": [ "ALL", "MASTER", "NODE", "NONE" ],
"default": "ALL",
"description": "The environment on which the module should be run"
},
"copy": {
"enum": [ "ALL", "PROXY", "SERVER", "NONE" ],
"default": "NONE",
"description": "The type of the service the module should be copied to as plugin"
}
}
}