-
Notifications
You must be signed in to change notification settings - Fork 0
/
presets_schema.json
53 lines (53 loc) · 1.68 KB
/
presets_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
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$ref": "#/definitions/Root",
"definitions": {
"Root": {
"type": "object",
"additionalProperties": false,
"properties": {
"format": {"type": "integer"},
"presets": {
"type": "object",
"patternProperties": {
"^[a-zA-Z0-9_]+$": {"$ref": "#/definitions/Preset"}
}
}
},
"required": ["format"],
"minProperties": 2,
"title": "Root"
},
"Preset": {
"type": "object",
"additionalProperties": false,
"properties": {
"targets": {
"type": "array",
"items": {"type": "string"},
"minItems": 1
},
"destinations": {
"type": "array",
"items": {"$ref": "#/definitions/Destination"},
"minItems": 1
}
},
"required": ["destinations", "targets"],
"title": "Preset"
},
"Destination": {
"type": "object",
"additionalProperties": false,
"properties": {
"path": {"type": "string"},
"max_backup_count": {"type": "integer"},
"file_format": {"type": "string", "enum": ["zip"]},
"date_format": {"type": "string"},
"name_separator": {"type": "string"}
},
"required": ["path"],
"title": "Destination"
}
}
}