forked from faucetsdn/udmi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenvelope.json
40 lines (40 loc) · 980 Bytes
/
envelope.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
{
"title": "Envelope",
"description": "The UDMI `envelope` is not a message itself, per se, but the attributes and other information that is delivered along with a message. Read more: <https://github.com/faucetsdn/udmi/blob/master/docs/envelope.md>",
"additionalProperties": true,
"properties": {
"deviceId": {
"type": "string",
"pattern": "^[A-Z]{2,6}-[0-9]{1,6}$"
},
"deviceNumId": {
"type": "string",
"pattern": "^[0-9]+$"
},
"deviceRegistryId": {
"type": "string",
"pattern": "^[a-zA-Z][-a-zA-Z0-9._+~%]*[a-zA-Z0-9]$"
},
"projectId": {
"type": "string",
"pattern": "^([.a-z]+:)?[a-z][-a-z0-9]*[a-z0-9]$"
},
"subFolder": {
"enum": [
"config",
"discovery",
"system",
"metadata",
"pointset",
"state"
]
}
},
"required": [
"projectId",
"deviceRegistryId",
"deviceNumId",
"deviceId",
"subFolder"
]
}