0b1d1943ec
* Config should be provided as Yaml file now * Other way to provide configuration are now deprectaed * The config format is checked agaist a schema with the json-schema standard * Tests are are added to the project (in the backend for config parsing)
47 lines
1.1 KiB
JSON
47 lines
1.1 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "Whiteboard config",
|
|
"type": "object",
|
|
"properties": {
|
|
"backend": {
|
|
"type": "object",
|
|
"required": ["accessToken", "performance", "webdav"],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"accessToken": {
|
|
"type": "string"
|
|
},
|
|
"webdav": {
|
|
"type": "boolean"
|
|
},
|
|
"performance": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": ["whiteboardInfoBroadcastFreq"],
|
|
"properties": {
|
|
"whiteboardInfoBroadcastFreq": {
|
|
"type": "number",
|
|
"minimum": 0
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"frontend": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["setReadOnlyOnWhiteboardLoad", "showSmallestScreenIndicator"],
|
|
"properties": {
|
|
"setReadOnlyOnWhiteboardLoad": {
|
|
"type": "boolean"
|
|
},
|
|
"showSmallestScreenIndicator": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": ["backend", "frontend"],
|
|
"additionalProperties": false
|
|
}
|