blob: f096201b7cb1ca3133162ccdd72a6822d3b16afa [file] [log] [blame]
Jian Liecb3c0f2015-12-15 10:07:49 -08001{
2 "type": "object",
3 "title": "group",
4 "required": [
5 "type",
6 "deviceId",
7 "appCookie",
8 "groupId",
9 "buckets"
10 ],
11 "properties": {
12 "type": {
13 "type": "string",
14 "example": "ALL"
15 },
16 "deviceId": {
17 "type": "string",
18 "example": "of:0000000000000001"
19 },
20 "appCookie": {
21 "type": "string",
22 "example": "1"
23 },
24 "groupId": {
25 "type": "string",
26 "example": "1"
27 },
28 "buckets": {
29 "type": "array",
30 "xml": {
31 "name": "buckets",
32 "wrapped": true
33 },
34 "items": {
35 "type": "object",
36 "title": "buckets",
37 "required": [
38 "treatment",
39 "weight",
40 "watchPort",
41 "watchGroup"
42 ],
43 "properties": {
44 "treatment": {
45 "type": "object",
46 "title": "treatment",
47 "required": [
48 "instructions",
49 "deferred"
50 ],
51 "properties": {
52 "instructions": {
53 "type": "array",
54 "title": "treatment",
55 "required": [
56 "properties",
57 "port"
58 ],
59 "items": {
60 "type": "object",
61 "title": "instructions",
62 "required": [
63 "type",
64 "port"
65 ],
66 "properties": {
67 "type": {
68 "type": "string",
69 "example": "OUTPUT"
70 },
71 "port": {
72 "type": "string",
73 "example": "2"
74 }
75 }
76 }
77 }
78 }
79 }
80 }
81 }
82 }
83 }
84}