This repository was archived by the owner on May 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSBrickSchema.js
More file actions
61 lines (61 loc) · 1.66 KB
/
SBrickSchema.js
File metadata and controls
61 lines (61 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
module.exports = {
'$schema': 'http://json-schema.org/draft-07/schema#',
'type': 'object',
'properties': {
'uuid': {
'type': 'string',
'minLength': 12,
'maxLength': 12
},
'password': {
'type': 'string'
},
'streamUrl': {
'type': 'string'
},
'channels': {
'type': 'array',
'minItems': 4,
'maxItems': 4,
'items': {
'type': 'object',
'properties': {
'channelId': {
'type': 'integer',
'maximum': 3,
'minimum': 0,
},
'min': {
'type': 'integer',
'maximum': 255,
'minimum': -255,
},
'max': {
'type': 'integer',
'maximum': 255,
'minimum': -255,
},
'keyInc': {
'type': ['integer', 'null'],
'maximum': 255,
'minimum': 1,
},
'keyDec': {
'type': ['integer', 'null'],
'maximum': 255,
'minimum': 1,
}
},
'required': [
'channelId',
'min',
'max',
]
}
}
},
'required': [
'uuid',
'channels'
]
};