4 "description": "The enums API.",
9 "enum": ["one", "two", "three"]
17 "enum": ["one", "two", "three"]
22 "id": "HasEnumeration",
28 "optional_enumeration": {
29 "$ref": "Enumeration",
35 "id": "InlineAndReferenceEnum",
40 "enum": ["test1", "test2", "test3"]
48 "id": "OptionalEnumType",
53 "enum": ["one", "two", "three"],
63 "description": "Takes an enum as its parameter.",
68 "enum": ["foo", "bar", "baz"]
78 "name": "takesEnumArray",
80 "description": "Takes an enum array as its parameter.",
87 "enum": ["foo", "bar", "baz"]
98 "name": "takesEnumAsType",
100 "description": "Takes an enum type as its parameter.",
103 "name": "enumeration",
104 "$ref": "Enumeration"
114 "name": "takesEnumArrayAsType",
116 "description": "Takes an enum type array as its parameter.",
122 "$ref": "Enumeration"
133 "name": "returnsEnum",
135 "description": "Returns an enum through the callback",
144 "enum": ["foo", "bar", "baz"]
151 "name": "returnsEnumAsType",
153 "description": "Returns an enum through the callback",
160 "name": "enumeration",
161 "$ref": "Enumeration"
168 "name": "returnsTwoEnums",
170 "description": "Returns two enums through the callback",
177 "name": "firstState",
179 "enum": ["foo", "bar", "baz"]
182 "name": "secondState",
184 "enum": ["spam", "ham", "eggs"]
191 "name": "takesOptionalEnum",
193 "description": "Takes an enum as its parameter.",
198 "enum": ["foo", "bar", "baz"],
209 "name": "takesMultipleOptionalEnums",
211 "description": "Takes two enums as parameters.",
216 "enum": ["foo", "bar", "baz"],
222 "enum": ["foo", "ding", "dong"],
235 "name": "onEnumFired",
237 "description": "Fired when an enum is ready.",
242 "enum": ["foo", "bar", "baz"]
247 "name": "onTwoEnumsFired",
249 "description": "Fired when two enums are ready.",
254 "enum": ["foo", "bar", "baz"]
257 "name": "secondEnum",
259 "enum": ["spam", "ham", "eggs"]