-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathconfig.py
More file actions
30 lines (30 loc) · 1003 Bytes
/
config.py
File metadata and controls
30 lines (30 loc) · 1003 Bytes
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
SCHEMA = {
"description": "Config values are a list of config item.",
"$schema": "http://json-schema.org/schema#",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"name": {"type": "string"},
"ptype": {"type": "string"},
"value": {"oneOf": [{"type": "string"}, {"type": "null"}]},
},
"required": ["name", "ptype", "value"],
"additionalProperties": False,
},
{
"type": "object",
"properties": {
"name": {"type": "string"},
"group": {"type": "string"},
"value": {"oneOf": [{"type": "string"}, {"type": "null"}]},
},
"required": ["name", "group", "value"],
"additionalProperties": False,
},
]
},
"minItems": 0,
"type": "array"
}