| OLD | NEW |
| (Empty) | |
| 1 [ |
| 2 { |
| 3 "namespace": "tester", |
| 4 "types": [ |
| 5 { |
| 6 "id": "TypeA", |
| 7 "type": "object", |
| 8 "description": "A cool thing.", |
| 9 "properties": { |
| 10 "a": {"nodoc": true, "type": "string", "minimum": 0}, |
| 11 "b": {"type": "array", "optional": true, "items": {"$ref": "TypeA"}, "
description": "List of TypeA."} |
| 12 } |
| 13 } |
| 14 ], |
| 15 "functions": [ |
| 16 { |
| 17 "name": "get", |
| 18 "type": "function", |
| 19 "description": "Gets stuff.", |
| 20 "parameters": [ |
| 21 { |
| 22 "name": "a", |
| 23 "description": "a param", |
| 24 "choices": [ |
| 25 {"type": "string"}, |
| 26 {"type": "array", "items": {"type": "string"}, "minItems": 1} |
| 27 ] |
| 28 }, |
| 29 { |
| 30 "type": "function", |
| 31 "name": "callback", |
| 32 "parameters": [ |
| 33 {"name": "results", "type": "array", "items": { "$ref": "TypeA"} } |
| 34 ] |
| 35 } |
| 36 ] |
| 37 } |
| 38 ], |
| 39 "events": [ |
| 40 { |
| 41 "name": "EventA", |
| 42 "type": "function", |
| 43 "description": "A cool event.", |
| 44 "parameters": [ |
| 45 {"type": "string", "name": "id"}, |
| 46 { |
| 47 "$ref": "TypeA", |
| 48 "name": "bookmark" |
| 49 } |
| 50 ] |
| 51 } |
| 52 ] |
| 53 } |
| 54 ] |
| OLD | NEW |