plugin configuration schemas
This commit is contained in:
parent
e3a918aecd
commit
b1b3be5e22
51
syncplay/schema.json
Normal file
51
syncplay/schema.json
Normal 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"]
|
||||
}
|
31
syncplaystatus/schema.json
Normal file
31
syncplaystatus/schema.json
Normal 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"]
|
||||
}
|
Loading…
Reference in New Issue
Block a user