-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.schema.json
54 lines (54 loc) · 1.38 KB
/
config.schema.json
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
{
"pluginAlias": "keyble",
"pluginType": "platform",
"singular": true,
"schema": {
"definitions": {
"lock_obj": {
"type": "object",
"title": "Lock",
"properties": {
"name": {
"title": "Name",
"type": "string",
"placeholder": "My Key-BLE Lock",
"maxLength": 64,
"required": true
},
"address": {
"title": "MAC Address",
"type": "string",
"pattern": "^[a-f0-9]{2}(:[a-f0-9]{2}){5}$",
"maxLength": 17,
"placeholder": "xx:xx:xx:xx:xx:xx",
"required": true
},
"key": {
"title": "User Key",
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"maxLength": 32,
"placeholder": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"required": true
},
"user": {
"title": "User ID",
"type": "number",
"maximum": 64,
"default": "0",
"required": true
}
}
}
},
"type": "object",
"properties": {
"locks": {
"title": "Key-BLE Locks",
"type": "array",
"items": { "$ref": "#/definitions/lock_obj", "extendRefs": true }
}
},
"required": [ "locks" ]
}
}