Skip to content

Commit 9eb9d29

Browse files
committed
Create config.schema
1 parent 69e3c85 commit 9eb9d29

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Config",
4+
"description": "The location of all global configuration settings, such as modules or logging",
5+
"type": "object",
6+
"properties": {
7+
"logging": {
8+
"description": "Configuration for the logger",
9+
"type": "object",
10+
"properties": {
11+
"logging_level": {
12+
"description": "The logging level, uses the same levels as python's built in logger. Supports strings and numbers. (Default: WARNING)",
13+
"type": ["string", "number"]
14+
},
15+
"hide_console": {
16+
"description": "Should log message appear in the console (default: False)",
17+
"type": "boolean"
18+
},
19+
"logging_file": {
20+
"description": "If defined, logger will write to the provided file by appending. (default: None)",
21+
"type": "string"
22+
}
23+
}
24+
},
25+
"modules": {
26+
"description": "Configuration for preloading modules",
27+
"type": "object",
28+
"properties": {
29+
"module_path": {
30+
"description": "The path to the modules.json file, (default json_files/modules.json)",
31+
"type": "string"
32+
}
33+
}
34+
}
35+
}
36+
}

0 commit comments

Comments
 (0)