Add ICU message format support
[chromium-blink-merge.git] / tools / json_schema_compiler / test / callbacks.json
blobdbd03c30aa55d6a99b7d2cdd823cdab7b16d1c1c
2   {
3     "namespace": "callbacks",
4     "description": "The callbacks API.",
5     "types": [
6       {
7         "id": "Enumeration",
8         "type": "string",
9         "enum": ["foo", "bar", "baz"]
10       }
11     ],
12     "functions": [
13       {
14         "name": "returnsNothing",
15         "type": "function",
16         "description": "Takes nothing. Returns nothing.",
17         "parameters": [
18           {
19             "name": "callback",
20             "type": "function",
21             "parameters": []
22           }
23         ]
24       },
25       {
26         "name": "returnsObject",
27         "description": "Returns an object.",
28         "type": "function",
29         "parameters": [
30           {
31             "name": "callback",
32             "type": "function",
33             "parameters": [
34               {
35                 "name": "someObject",
36                 "type": "object",
37                 "properties": {
38                   "state": {
39                     "$ref": "Enumeration"
40                   }
41                 }
42               }
43             ]
44           }
45         ]
46       },
47       {
48         "name": "returnsMultiple",
49         "description": "Returns an object.",
50         "type": "function",
51         "parameters": [
52           {
53             "name": "callback",
54             "type": "function",
55             "parameters": [
56               {
57                 "name": "someInteger",
58                 "type": "integer"
59               },
60               {
61                 "name": "someObject",
62                 "type": "object",
63                 "properties": {
64                   "state": {
65                     "$ref": "Enumeration"
66                   }
67                 }
68               }
69             ]
70           }
71         ]
72       }
73     ]
74   }