4 "description": "The enums API.",
9 "enum": ["one", "two", "three"]
12 "id": "OtherEnumeration",
14 "enum": ["spam", "ham", "eggs"]
26 "id": "HasEnumeration",
32 "optional_enumeration": {
33 "$ref": "Enumeration",
39 "id": "ReferenceEnum",
48 "id": "OptionalEnumType",
52 "$ref": "Enumeration",
62 "description": "Takes an enum as its parameter.",
76 "name": "takesEnumArray",
78 "description": "Takes an enum array as its parameter.",
95 "name": "takesEnumAsType",
97 "description": "Takes an enum type as its parameter.",
100 "name": "enumeration",
101 "$ref": "Enumeration"
111 "name": "takesEnumArrayAsType",
113 "description": "Takes an enum type array as its parameter.",
119 "$ref": "Enumeration"
130 "name": "returnsEnum",
132 "description": "Returns an enum through the callback",
140 "$ref": "Enumeration"
147 "name": "returnsEnumAsType",
149 "description": "Returns an enum through the callback",
156 "name": "enumeration",
157 "$ref": "Enumeration"
164 "name": "returnsTwoEnums",
166 "description": "Returns two enums through the callback",
173 "name": "firstState",
174 "$ref": "Enumeration"
177 "name": "secondState",
178 "$ref": "OtherEnumeration"
185 "name": "takesOptionalEnum",
187 "description": "Takes an enum as its parameter.",
191 "$ref": "Enumeration",
202 "name": "takesMultipleOptionalEnums",
204 "description": "Takes two enums as parameters.",
208 "$ref": "Enumeration",
213 "$ref": "OtherEnumeration",
226 "name": "onEnumFired",
228 "description": "Fired when an enum is ready.",
232 "$ref": "Enumeration"
237 "name": "onTwoEnumsFired",
239 "description": "Fired when two enums are ready.",
243 "$ref": "Enumeration"
246 "name": "secondEnum",
247 "$ref": "OtherEnumeration"