summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs/server2/test_data/test_json/test_file.json
blob: ea39b62a095710358405c6b36cf6c8871149251b (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[
  {
    "namespace": "tester",
    "types": [
      {
        "id": "TypeA",
        "type": "object",
        "description": "A cool thing.",
        "properties": {
          "a": {"nodoc": true, "type": "string", "minimum": 0},
          "b": {"type": "array", "optional": true, "items": {"$ref": "TypeA"}, "description": "List of TypeA."}
        }
      }
    ],
    "functions": [
      {
        "name": "get",
        "type": "function",
        "description": "Gets stuff.",
        "parameters": [
          {
            "name": "a",
            "description": "a param",
            "choices": [
              {"type": "string"},
              {"type": "array", "items": {"type": "string"}, "minItems": 1}
            ]
          },
          {
            "type": "function",
            "name": "callback",
            "parameters": [
              {"name": "results", "type": "array", "items": { "$ref": "TypeA"} }
            ]
          }
        ]
      }
    ],
    "events": [
      {
        "name": "EventA",
        "type": "function",
        "description": "A cool event.",
        "parameters": [
          {"type": "string", "name": "id"},
          {
            "$ref": "TypeA",
            "name": "bookmark"
          }
        ]
      }
    ]
  }
]