mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-28 00:16:17 +02:00
added some json schemas
This commit is contained in:
parent
1fa9d3fa71
commit
ae2478bb54
8 changed files with 446 additions and 0 deletions
60
doc/json_rpc_api/server.schema.json
Normal file
60
doc/json_rpc_api/server.schema.json
Normal file
|
@ -0,0 +1,60 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"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"
|
||||
]
|
||||
},
|
||||
"snapserver": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"controlProtocolVersion": {
|
||||
"type": "integer"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"protocolVersion": {
|
||||
"type": "integer"
|
||||
},
|
||||
"version": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"controlProtocolVersion",
|
||||
"name",
|
||||
"protocolVersion",
|
||||
"version"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"host",
|
||||
"snapserver"
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue