Skip to content

Commit 266537b

Browse files
committed
JSON API clean-up
1 parent 7ddc117 commit 266537b

16 files changed

+103
-66
lines changed

libsrc/api/JSONRPC_schema/schema-adjustment.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@
77
"required" : true,
88
"enum" : ["adjustment"]
99
},
10-
"instance" : {
10+
"instance": {
1111
"type": "array",
12-
"required": false,
13-
"items" : {}
12+
"items": {
13+
"type": "integer",
14+
"minimum": 0,
15+
"maximum": 254
16+
},
17+
"uniqueItems": true
1418
},
1519
"tan" : {
1620
"type" : "integer"

libsrc/api/JSONRPC_schema/schema-clear.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@
77
"required" : true,
88
"enum" : ["clear"]
99
},
10-
"instance" : {
10+
"instance": {
1111
"type": "array",
12-
"required": false,
13-
"items" : {}
12+
"items": {
13+
"type": "integer",
14+
"minimum": 0,
15+
"maximum": 254
16+
},
17+
"uniqueItems": true
1418
},
1519
"tan" : {
1620
"type" : "integer"

libsrc/api/JSONRPC_schema/schema-clearall.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@
77
"required" : true,
88
"enum" : ["clearall"]
99
},
10-
"instance" : {
10+
"instance": {
1111
"type": "array",
12-
"required": false,
13-
"items" : {}
12+
"items": {
13+
"type": "integer",
14+
"minimum": 0,
15+
"maximum": 254
16+
},
17+
"uniqueItems": true
1418
},
1519
"tan" : {
1620
"type" : "integer"

libsrc/api/JSONRPC_schema/schema-color.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@
77
"required" : true,
88
"enum" : ["color"]
99
},
10-
"instance" : {
10+
"instance": {
1111
"type": "array",
12-
"required": false,
13-
"items" : {}
12+
"items": {
13+
"type": "integer",
14+
"minimum": 0,
15+
"maximum": 254
16+
},
17+
"uniqueItems": true
1418
},
1519
"tan" : {
1620
"type" : "integer"

libsrc/api/JSONRPC_schema/schema-componentstate.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@
99
"required" : true,
1010
"enum" : ["componentstate"]
1111
},
12-
"instance" : {
12+
"instance": {
1313
"type": "array",
14-
"required": false,
15-
"items" : {}
14+
"items": {
15+
"type": "integer",
16+
"minimum": 0,
17+
"maximum": 254
18+
},
19+
"uniqueItems": true
1620
},
1721
"tan" : {
1822
"type" : "integer"

libsrc/api/JSONRPC_schema/schema-config.json

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,46 @@
11
{
22
"type":"object",
33
"required":true,
4-
"properties":{
4+
"properties": {
55
"command": {
6-
"type" : "string",
7-
"required" : true,
8-
"enum" : ["config"]
6+
"type": "string",
7+
"required": true,
8+
"enum": ["config"]
99
},
1010
"subcommand": {
11-
"type" : "string",
12-
"required" : true,
13-
"enum" : ["getconfig","getschema","setconfig","restoreconfig","reload"]
11+
"type": "string",
12+
"required": true,
13+
"enum": ["getconfig","getschema","setconfig","restoreconfig","reload"]
1414
},
15-
"tan" : {
16-
"type" : "integer"
15+
"tan": {
16+
"type": "integer"
1717
},
1818
"configFilter": {
19-
"global" : {
19+
"global": {
2020
"types": {
2121
"type": "array",
2222
"required": false,
23-
"items" : {
23+
"items": {
2424
"type" : "string"
2525
}
2626
}
2727
},
28-
"instances" : {
29-
"ids" : {
28+
"instances": {
29+
"ids": {
3030
"type": "array",
3131
"required": true,
32-
"items" : {},
32+
"items": {
33+
"type" : "integer",
34+
"minimum": 0,
35+
"maximum": 254
36+
},
37+
"uniqueItems": true,
3338
"minItems": 1
3439
},
3540
"types": {
3641
"type": "array",
3742
"required": false,
38-
"items" :{
43+
"items": {
3944
"type" : "string"
4045
}
4146
}

libsrc/api/JSONRPC_schema/schema-effect.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@
77
"required" : true,
88
"enum" : ["effect"]
99
},
10-
"instance" : {
10+
"instance": {
1111
"type": "array",
12-
"required": false,
13-
"items" : {},
12+
"items": {
13+
"type": "integer",
14+
"minimum": 0,
15+
"maximum": 254
16+
},
17+
"uniqueItems": true,
1418
"minItems": 1
1519
},
1620
"tan" : {

libsrc/api/JSONRPC_schema/schema-image.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@
77
"required" : true,
88
"enum" : ["image"]
99
},
10-
"instance" : {
10+
"instance": {
1111
"type": "array",
12-
"required": false,
13-
"items" : {}
12+
"items": {
13+
"type": "integer",
14+
"minimum": 0,
15+
"maximum": 254
16+
},
17+
"uniqueItems": true
1418
},
1519
"tan" : {
1620
"type" : "integer"

libsrc/api/JSONRPC_schema/schema-instance.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"instance" : {
1919
"type" : "integer",
2020
"minimum" : 0,
21-
"maximum" : 255
21+
"maximum" : 254
2222
},
2323
"name": {
2424
"type": "string",

libsrc/api/JSONRPC_schema/schema-instancedata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"instance" : {
1616
"type": "integer",
1717
"minimum": 0,
18-
"maximum": 255
18+
"maximum": 254
1919
},
2020
"format" : {
2121
"type" : "string",

0 commit comments

Comments
 (0)