-
Notifications
You must be signed in to change notification settings - Fork 7
/
schema.json
82 lines (80 loc) · 3.15 KB
/
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/zigpy/open-coordinator-backup/schema.json",
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"format": {"type": "string", "pattern": "^zigpy/open-coordinator-backup$"},
"version": {"type": "integer", "minimum": 1, "maximum": 1},
"source": {"type": "string", "pattern": "^(.*?)+@(.*?)$"},
"internal": {"type": "object"}
},
"required": ["version", "source"]
},
"stack_specific": {
"type": "object",
"properties": {
"zstack": {
"type": "object",
"properties": {
"tclk_seed": {"type": "string", "pattern": "[a-fA-F0-9]{32}"}
}
}
}
},
"coordinator_ieee": {"type": "string", "pattern": "[a-fA-F0-9]{16}"},
"pan_id": {"type": "string", "pattern": "[a-fA-F0-9]{4}"},
"extended_pan_id": {"type": "string", "pattern": "[a-fA-F0-9]{16}"},
"nwk_update_id": {"type": "integer", "minimum": 0, "maximum": 255},
"security_level": {"type": "integer", "minimum": 0, "maximum": 7},
"channel": {"type": "integer", "minimum": 11, "maximum": 26},
"channel_mask": {
"type": "array",
"items": {"type": "integer", "minimum": 11, "maximum": 26}
},
"network_key": {
"type": "object",
"properties": {
"key": {"type": "string", "pattern": "[a-fA-F0-9]{32}"},
"sequence_number": {"type": "integer", "minimum": 0, "maximum": 255},
"frame_counter": {"type": "integer", "minimum": 0, "maximum": 4294967295}
},
"required": ["key", "sequence_number", "frame_counter"]
},
"devices": {
"type": "array",
"items": {
"type": "object",
"properties": {
"nwk_address": {"type": ["string", "null"], "pattern": "[a-fA-F0-9]{4}"},
"ieee_address": {"type": "string", "pattern": "[a-fA-F0-9]{16}"},
"is_child": {"type": "boolean"},
"link_key": {
"type": "object",
"properties": {
"key": {"type": "string", "pattern": "[a-fA-F0-9]{16}"},
"tx_counter": {"type": "integer", "minimum": 0, "maximum": 4294967295},
"rx_counter": {"type": "integer", "minimum": 0, "maximum": 4294967295}
},
"required": ["key", "tx_counter", "rx_counter"]
}
},
"required": ["nwk_address", "ieee_address"]
}
}
},
"required": [
"metadata",
"coordinator_ieee",
"pan_id",
"extended_pan_id",
"nwk_update_id",
"security_level",
"channel",
"channel_mask",
"network_key",
"devices"
]
}