ex
Fork of mbed-os-example-mbed5-blinky by
dumi_doc-master/schema/bots.json@44:c1d8923072ba, 2017-07-18 (annotated)
- Committer:
- TMBOY
- Date:
- Tue Jul 18 16:27:22 2017 +0800
- Revision:
- 44:c1d8923072ba
?
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| TMBOY | 44:c1d8923072ba | 1 | { |
| TMBOY | 44:c1d8923072ba | 2 | "$schema": "http://json-schema.org/draft-04/schema#", |
| TMBOY | 44:c1d8923072ba | 3 | "id":"https://xiaodu.baidu.com/schema/bots.json", |
| TMBOY | 44:c1d8923072ba | 4 | "title":"bot列表的定义", |
| TMBOY | 44:c1d8923072ba | 5 | "type":"array", |
| TMBOY | 44:c1d8923072ba | 6 | "items":{ |
| TMBOY | 44:c1d8923072ba | 7 | "type":"object", |
| TMBOY | 44:c1d8923072ba | 8 | "required":["id","server"], |
| TMBOY | 44:c1d8923072ba | 9 | "properties":{ |
| TMBOY | 44:c1d8923072ba | 10 | "id":{"type":"string"}, |
| TMBOY | 44:c1d8923072ba | 11 | "is_session_enable":{"type":"integer"}, |
| TMBOY | 44:c1d8923072ba | 12 | "is_uic_enable":{"type":"integer"}, |
| TMBOY | 44:c1d8923072ba | 13 | "is_base_uic_enable":{"type":"integer"}, |
| TMBOY | 44:c1d8923072ba | 14 | "private_field":{ |
| TMBOY | 44:c1d8923072ba | 15 | "description":"这个估计是调用用户画像服务的参数", |
| TMBOY | 44:c1d8923072ba | 16 | "type":"array", |
| TMBOY | 44:c1d8923072ba | 17 | "items":{"type":"string"} |
| TMBOY | 44:c1d8923072ba | 18 | }, |
| TMBOY | 44:c1d8923072ba | 19 | "server":{ |
| TMBOY | 44:c1d8923072ba | 20 | "oneOf":[ |
| TMBOY | 44:c1d8923072ba | 21 | {"$ref":"#/definitions/ipport_server"}, |
| TMBOY | 44:c1d8923072ba | 22 | {"$ref":"#/definitions/bns_server"} |
| TMBOY | 44:c1d8923072ba | 23 | ] |
| TMBOY | 44:c1d8923072ba | 24 | }, |
| TMBOY | 44:c1d8923072ba | 25 | "sessions":{ |
| TMBOY | 44:c1d8923072ba | 26 | "type":"array", |
| TMBOY | 44:c1d8923072ba | 27 | "items":{ |
| TMBOY | 44:c1d8923072ba | 28 | "type":"object", |
| TMBOY | 44:c1d8923072ba | 29 | "properties":{ |
| TMBOY | 44:c1d8923072ba | 30 | "name":{"type":"string"}, |
| TMBOY | 44:c1d8923072ba | 31 | "type":{"type":"string","enum":["string","list","hash"]}, |
| TMBOY | 44:c1d8923072ba | 32 | "private":{"type":"integer","enum":[0,1]} |
| TMBOY | 44:c1d8923072ba | 33 | } |
| TMBOY | 44:c1d8923072ba | 34 | } |
| TMBOY | 44:c1d8923072ba | 35 | } |
| TMBOY | 44:c1d8923072ba | 36 | } |
| TMBOY | 44:c1d8923072ba | 37 | }, |
| TMBOY | 44:c1d8923072ba | 38 | "definitions": { |
| TMBOY | 44:c1d8923072ba | 39 | "ipport_server":{ |
| TMBOY | 44:c1d8923072ba | 40 | "type":"object", |
| TMBOY | 44:c1d8923072ba | 41 | "required":["machine","protocal","type"], |
| TMBOY | 44:c1d8923072ba | 42 | "properties":{ |
| TMBOY | 44:c1d8923072ba | 43 | "machine":{ |
| TMBOY | 44:c1d8923072ba | 44 | "type":"array", |
| TMBOY | 44:c1d8923072ba | 45 | "items":{ |
| TMBOY | 44:c1d8923072ba | 46 | "type":"object", |
| TMBOY | 44:c1d8923072ba | 47 | "required":["ip","port"], |
| TMBOY | 44:c1d8923072ba | 48 | "properties":{ |
| TMBOY | 44:c1d8923072ba | 49 | "ip":{"type":"string"}, |
| TMBOY | 44:c1d8923072ba | 50 | "port":{"type":"integer"} |
| TMBOY | 44:c1d8923072ba | 51 | } |
| TMBOY | 44:c1d8923072ba | 52 | } |
| TMBOY | 44:c1d8923072ba | 53 | }, |
| TMBOY | 44:c1d8923072ba | 54 | "protocal":{"type":"string","enum":["http","http_post","mcpack"]}, |
| TMBOY | 44:c1d8923072ba | 55 | "type":{"type":"string","enum":["ipport"]} |
| TMBOY | 44:c1d8923072ba | 56 | } |
| TMBOY | 44:c1d8923072ba | 57 | }, |
| TMBOY | 44:c1d8923072ba | 58 | "bns_server":{ |
| TMBOY | 44:c1d8923072ba | 59 | "type":"object", |
| TMBOY | 44:c1d8923072ba | 60 | "required":["protocal","bns_node_name","type"], |
| TMBOY | 44:c1d8923072ba | 61 | "properties":{ |
| TMBOY | 44:c1d8923072ba | 62 | "protocal":{"type":"string","enum":["http","http_post","mcpack"]}, |
| TMBOY | 44:c1d8923072ba | 63 | "bns_node_name":{"type":"string"}, |
| TMBOY | 44:c1d8923072ba | 64 | "bns_timeout": {"type":"integer","description":"单位是毫秒"}, |
| TMBOY | 44:c1d8923072ba | 65 | "bns_node_info_file":{"type":"string","description":"TODO 文件名,还不知道是干什么的,晓鸣也不知道"}, |
| TMBOY | 44:c1d8923072ba | 66 | "type":{"type":"string","enum":["bns"]} |
| TMBOY | 44:c1d8923072ba | 67 | } |
| TMBOY | 44:c1d8923072ba | 68 | } |
| TMBOY | 44:c1d8923072ba | 69 | } |
| TMBOY | 44:c1d8923072ba | 70 | |
| TMBOY | 44:c1d8923072ba | 71 | } |
