added some json schemas

This commit is contained in:
badaix 2016-05-28 12:25:49 +02:00
parent 1fa9d3fa71
commit ae2478bb54
8 changed files with 446 additions and 0 deletions

View 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"
]
}