OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "namespace": "callbacks", | 3 "namespace": "callbacks", |
4 "description": "The callbacks API.", | 4 "description": "The callbacks API.", |
5 "types": [], | 5 "types": [ |
| 6 { |
| 7 "id": "Enumeration", |
| 8 "type": "string", |
| 9 "enum": ["foo", "bar", "baz"] |
| 10 } |
| 11 ], |
6 "functions": [ | 12 "functions": [ |
7 { | 13 { |
8 "name": "returnsNothing", | 14 "name": "returnsNothing", |
9 "type": "function", | 15 "type": "function", |
10 "description": "Takes nothing. Returns nothing.", | 16 "description": "Takes nothing. Returns nothing.", |
11 "parameters": [ | 17 "parameters": [ |
12 { | 18 { |
13 "name": "callback", | 19 "name": "callback", |
14 "type": "function", | 20 "type": "function", |
15 "parameters": [] | 21 "parameters": [] |
16 } | 22 } |
17 ] | 23 ] |
18 }, | 24 }, |
19 { | 25 { |
20 "name": "returnsObject", | 26 "name": "returnsObject", |
21 "description": "Returns an object.", | 27 "description": "Returns an object.", |
22 "type": "function", | 28 "type": "function", |
23 "parameters": [ | 29 "parameters": [ |
24 { | 30 { |
25 "name": "callback", | 31 "name": "callback", |
26 "type": "function", | 32 "type": "function", |
27 "parameters": [ | 33 "parameters": [ |
28 { | 34 { |
29 "name": "someObject", | 35 "name": "someObject", |
30 "type": "object", | 36 "type": "object", |
31 "properties": { | 37 "properties": { |
32 "state": { | 38 "state": { |
33 "type": "string", | 39 "$ref": "Enumeration" |
34 "enum": ["foo", "bar", "baz"] | |
35 } | 40 } |
36 } | 41 } |
37 } | 42 } |
38 ] | 43 ] |
39 } | 44 } |
40 ] | 45 ] |
41 }, | 46 }, |
42 { | 47 { |
43 "name": "returnsMultiple", | 48 "name": "returnsMultiple", |
44 "description": "Returns an object.", | 49 "description": "Returns an object.", |
45 "type": "function", | 50 "type": "function", |
46 "parameters": [ | 51 "parameters": [ |
47 { | 52 { |
48 "name": "callback", | 53 "name": "callback", |
49 "type": "function", | 54 "type": "function", |
50 "parameters": [ | 55 "parameters": [ |
51 { | 56 { |
52 "name": "someInteger", | 57 "name": "someInteger", |
53 "type": "integer" | 58 "type": "integer" |
54 }, | 59 }, |
55 { | 60 { |
56 "name": "someObject", | 61 "name": "someObject", |
57 "type": "object", | 62 "type": "object", |
58 "properties": { | 63 "properties": { |
59 "state": { | 64 "state": { |
60 "type": "string", | 65 "$ref": "Enumeration" |
61 "enum": ["foo", "bar", "baz"] | |
62 } | 66 } |
63 } | 67 } |
64 } | 68 } |
65 ] | 69 ] |
66 } | 70 } |
67 ] | 71 ] |
68 } | 72 } |
69 ] | 73 ] |
70 } | 74 } |
71 ] | 75 ] |
72 | 76 |
OLD | NEW |