plugin configuration schemas

This commit is contained in:
Evert Prants 2021-10-02 15:11:05 +03:00
parent e3a918aecd
commit b1b3be5e22
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
2 changed files with 82 additions and 0 deletions

51
syncplay/schema.json Normal file
View File

@ -0,0 +1,51 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://squeebot.lunasqu.ee/pkg/service-syncplay/syncplay.schema.json",
"title": "syncplay",
"description": "SyncPlay Service configuration",
"type": "object",
"properties": {
"instances": {
"type": "array",
"description": "List of all registered protocols",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Protocol's descriptive name"
},
"syncplay": {
"object": "string",
"description": "SyncPlay configuration",
"properties": {
"name": {
"type": "string",
"description": "Display name"
},
"host": {
"type": "string",
"description": "Server host"
},
"port": {
"type": "integer",
"description": "Server port"
},
"room": {
"type": "string",
"description": "Room name"
},
"password": {
"type": "string",
"description": "Server password"
}
},
"required": ["name", "host", "port", "room"]
}
},
"required": ["name", "syncplay"]
}
}
},
"required": ["instances"]
}

View File

@ -0,0 +1,31 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://squeebot.lunasqu.ee/pkg/service-syncplay/syncplaystatus.schema.json",
"title": "syncplaystatus",
"description": "SyncPlay Status monitors",
"type": "object",
"properties": {
"monitors": {
"type": "array",
"description": "List of monitors",
"items": {
"type": "object",
"properties": {
"rooms": {
"type": "array",
"description": "Rooms which are used for monitoring",
"items": {
"type": "string"
}
},
"protocol": {
"type": "string",
"description": "Name of the syncplay protocol instance to monitor"
}
},
"required": ["rooms", "protocol"]
}
}
},
"required": ["monitors"]
}