chromium/tools/json_schema_compiler/test/functions_as_parameters.json

[
  {
    "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": []
          }
        }
      },
      {
        "id": "SerializableFunctionType",
        "type": "object",
        "properties": {
          "functionProperty": {
            "type": "function",
            "serializableFunction": true,
            "parameters": []
          }
        }
      },
      {
        "id": "OptionalSerializableFunctionType",
        "type": "object",
        "properties": {
          "functionProperty": {
            "type": "function",
            "serializableFunction": true,
            "optional": true,
            "parameters": []
          }
        }
      }
    ]
  }
]