mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-30 09:26:15 +02:00
added some json schemas
This commit is contained in:
parent
1fa9d3fa71
commit
ae2478bb54
8 changed files with 446 additions and 0 deletions
112
doc/json_rpc_api/client.schema.json
Normal file
112
doc/json_rpc_api/client.schema.json
Normal file
|
@ -0,0 +1,112 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"config": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"latency": {
|
||||
"type": "integer"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"stream": {
|
||||
"type": "string"
|
||||
},
|
||||
"volume": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"muted": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"percent": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"muted",
|
||||
"percent"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"latency",
|
||||
"name",
|
||||
"stream",
|
||||
"volume"
|
||||
]
|
||||
},
|
||||
"connected": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"host": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"arch": {
|
||||
"type": "string"
|
||||
},
|
||||
"ip": {
|
||||
"type": "string"
|
||||
},
|
||||
"mac": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"os": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"arch",
|
||||
"ip",
|
||||
"mac",
|
||||
"name",
|
||||
"os"
|
||||
]
|
||||
},
|
||||
"lastSeen": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"sec": {
|
||||
"type": "integer"
|
||||
},
|
||||
"usec": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"sec",
|
||||
"usec"
|
||||
]
|
||||
},
|
||||
"snapclient": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"protocolVersion": {
|
||||
"type": "integer"
|
||||
},
|
||||
"version": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"name",
|
||||
"protocolVersion",
|
||||
"version"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"config",
|
||||
"connected",
|
||||
"host",
|
||||
"lastSeen",
|
||||
"snapclient"
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue