-
Notifications
You must be signed in to change notification settings - Fork 4
/
black-box-variable-query-schema.json
69 lines (62 loc) · 1.66 KB
/
black-box-variable-query-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
{
"id": "ropod-cmd-schema.json",
"$schema": "http://json-schema.org/draft-04/schema#",
"title" : "Black Box Variable Query Schema",
"description": "Find the names of all variables logged on a given black box",
"type": "object",
"properties":
{
"header":
{
"allOf":
[
{ "$ref": "ropod-msg-schema.json#/definitions/header" },
{ "$ref": "#/definitions/header" }
]
},
"payload":
{
"allOf":
[
{ "$ref": "ropod-msg-schema.json#/definitions/payload" },
{ "$ref": "#/definitions/bbVariableQueryPayload" }
]
}
},
"required": [ "header", "payload" ],
"additionalProperties": true,
"definitions":
{
"header":
{
"type": "object",
"description": "More specific definition (than the definition of ropod-msg-schema.json). Only the type field is further specified.",
"properties":
{
"type": { "enum": [ "VARIABLE-QUERY" ] }
},
"required": [ "type"],
"additionalProperties": true
},
"bbVariableQueryPayload":
{
"type": "object",
"description": "Data associated with a black box variable query (e.g. who is requesting the data).",
"properties":
{
"senderId": { "$ref": "#/definitions/senderId" },
"ropodId": { "$ref": "#/definitions/ropodId" }
},
"required": [ "senderId", "ropodId" ],
"additionalProperties": false
},
"senderId":
{
"description": "ID uniquely specifying the client that requests black box varible names."
},
"ropodId":
{
"description": "ID of the ropod to which the queried black box is attached."
}
}
}