blob: 203e2e421e1ead6dcb2be5bfb0fe008a8f61f220 [file] [log] [blame]
Jian Liecb3c0f2015-12-15 10:07:49 -08001{
2 "type": "object",
3 "title": "group",
4 "required": [
5 "type",
Jian Liecb3c0f2015-12-15 10:07:49 -08006 "appCookie",
7 "groupId",
8 "buckets"
9 ],
10 "properties": {
11 "type": {
12 "type": "string",
13 "example": "ALL"
14 },
Jian Liecb3c0f2015-12-15 10:07:49 -080015 "appCookie": {
16 "type": "string",
Charles Chanb3ef1fd2016-05-12 20:49:39 -070017 "description": "application cookie. Arbitrary length byte array represented in hex string",
18 "example": "0x1234abcd"
Jian Liecb3c0f2015-12-15 10:07:49 -080019 },
20 "groupId": {
21 "type": "string",
22 "example": "1"
23 },
24 "buckets": {
25 "type": "array",
26 "xml": {
27 "name": "buckets",
28 "wrapped": true
29 },
30 "items": {
31 "type": "object",
32 "title": "buckets",
33 "required": [
34 "treatment",
35 "weight",
36 "watchPort",
37 "watchGroup"
38 ],
39 "properties": {
40 "treatment": {
41 "type": "object",
42 "title": "treatment",
43 "required": [
44 "instructions",
45 "deferred"
46 ],
47 "properties": {
48 "instructions": {
49 "type": "array",
50 "title": "treatment",
51 "required": [
52 "properties",
53 "port"
54 ],
55 "items": {
56 "type": "object",
57 "title": "instructions",
58 "required": [
59 "type",
60 "port"
61 ],
62 "properties": {
63 "type": {
64 "type": "string",
65 "example": "OUTPUT"
66 },
67 "port": {
68 "type": "string",
69 "example": "2"
70 }
71 }
72 }
73 }
74 }
75 }
76 }
77 }
78 }
79 }
Varun Sharma1853b3f2016-07-18 14:37:13 +053080}