summaryrefslogtreecommitdiffstats
path: root/tools/json_schema_compiler/test/functions_as_parameters.json
blob: b94861681431331bf40c4114b01c022800269c0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[
  {
    "namespace": "functions_as_parameters",
    "description": "The functionsAsParameters API",
    "types": [
      {
        "id": "FunctionType",
        "type": "object",
        "properties": {
          "event_callback": {
            "type": "function",
            "parameters": { }
          }
        }
      },
      {
        "id": "OptionalFunctionType",
        "type": "object",
        "properties": {
          "event_callback": {
            "type": "function",
            "optional": true,
            "parameters": { }
          }
        }
      }
    ]
  }
]