mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-01 18:31:45 +02:00
added some json schemas
This commit is contained in:
parent
1fa9d3fa71
commit
ae2478bb54
8 changed files with 446 additions and 0 deletions
42
doc/json_rpc_api/server_status.schema.json
Normal file
42
doc/json_rpc_api/server_status.schema.json
Normal file
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"jsonrpc": {
|
||||
"type": "string"
|
||||
},
|
||||
"result": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"clients": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "https://raw.githubusercontent.com/badaix/snapcast/master/doc/json_rpc_api/client.schema.json"
|
||||
}
|
||||
},
|
||||
"server": {
|
||||
"$ref": "https://raw.githubusercontent.com/badaix/snapcast/master/doc/json_rpc_api/server.schema.json"
|
||||
},
|
||||
"streams": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "https://raw.githubusercontent.com/badaix/snapcast/master/doc/json_rpc_api/stream.schema.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"clients",
|
||||
"server",
|
||||
"streams"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"jsonrpc",
|
||||
"result"
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue