Jian Li | ecb3c0f | 2015-12-15 10:07:49 -0800 | [diff] [blame] | 1 | { |
| 2 | "type": "object", |
| 3 | "title": "group", |
| 4 | "required": [ |
| 5 | "type", |
Jian Li | ecb3c0f | 2015-12-15 10:07:49 -0800 | [diff] [blame] | 6 | "appCookie", |
| 7 | "groupId", |
| 8 | "buckets" |
| 9 | ], |
| 10 | "properties": { |
| 11 | "type": { |
| 12 | "type": "string", |
| 13 | "example": "ALL" |
| 14 | }, |
Jian Li | ecb3c0f | 2015-12-15 10:07:49 -0800 | [diff] [blame] | 15 | "appCookie": { |
| 16 | "type": "string", |
Charles Chan | b3ef1fd | 2016-05-12 20:49:39 -0700 | [diff] [blame] | 17 | "description": "application cookie. Arbitrary length byte array represented in hex string", |
| 18 | "example": "0x1234abcd" |
Jian Li | ecb3c0f | 2015-12-15 10:07:49 -0800 | [diff] [blame] | 19 | }, |
| 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 Sharma | 1853b3f | 2016-07-18 14:37:13 +0530 | [diff] [blame] | 80 | } |