| [ |
| { |
| "namespace": "callbacks", |
| "description": "The callbacks API.", |
| "types": [ |
| { |
| "id": "Enumeration", |
| "type": "string", |
| "enum": ["foo", "bar", "baz"] |
| } |
| ], |
| "functions": [ |
| { |
| "name": "returnsNothing", |
| "type": "function", |
| "description": "Takes nothing. Returns nothing.", |
| "parameters": [ |
| { |
| "name": "callback", |
| "type": "function", |
| "parameters": [] |
| } |
| ] |
| }, |
| { |
| "name": "returnsObject", |
| "description": "Returns an object.", |
| "type": "function", |
| "parameters": [ |
| { |
| "name": "callback", |
| "type": "function", |
| "parameters": [ |
| { |
| "name": "someObject", |
| "type": "object", |
| "properties": { |
| "state": { |
| "$ref": "Enumeration" |
| } |
| } |
| } |
| ] |
| } |
| ] |
| }, |
| { |
| "name": "returnsMultiple", |
| "description": "Returns an object.", |
| "type": "function", |
| "parameters": [ |
| { |
| "name": "callback", |
| "type": "function", |
| "parameters": [ |
| { |
| "name": "someInteger", |
| "type": "integer" |
| }, |
| { |
| "name": "someObject", |
| "type": "object", |
| "properties": { |
| "state": { |
| "$ref": "Enumeration" |
| } |
| } |
| } |
| ] |
| } |
| ] |
| } |
| ] |
| } |
| ] |
| |