Add configuration validation with jsonschema
Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
a7c9f1455e
commit
17f0948aeb
6 changed files with 30 additions and 7 deletions
21
config.schema.json
Normal file
21
config.schema.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"chat_id": {
|
||||
"type": "number"
|
||||
},
|
||||
"auth_key": {
|
||||
"type": "string"
|
||||
},
|
||||
"host_template": {
|
||||
"type": "string"
|
||||
},
|
||||
"service_template": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"chat_id",
|
||||
"auth_key"
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue