Screen Orientation Controller allow rotation for some orientations
[chromium-blink-merge.git] / tools / json_schema_compiler / test / crossref.json
bloba1e994b625b78ade8f18213c1d59e5c2c4d186d2
2   {
3     "namespace": "crossref",
4     "description": "The crossref API.",
5     "dependencies": ["simple_api"],
6     "types": [
7       {
8         "id": "CrossrefType",
9         "type": "object",
10         "properties": {
11           "testType": {
12             "$ref": "simple_api.TestType",
13             "optional": true
14           }
15         }
16       }
17     ],
18     "functions": [
19       {
20         "name": "testTypeOptionalParam",
21         "type": "function",
22         "description": "Takes TestType as a param.",
23         "parameters": [
24           {
25             "name": "testType",
26             "$ref": "simple_api.TestType",
27             "optional": true
28           },
29           {
30             "name": "callback",
31             "type": "function",
32             "parameters": []
33           }
34         ]
35       },
36       {
37         "name": "getTestType",
38         "type": "function",
39         "description": "Return a TestType.",
40         "parameters": [
41           {
42             "name": "callback",
43             "type": "function",
44             "parameters": [
45               {
46                 "name": "result",
47                 "$ref": "simple_api.TestType",
48                 "description": "A TestType."
49               }
50             ]
51           }
52         ]
53       },
54       {
55         "name": "testTypeInObject",
56         "type": "function",
57         "description": "Takes an optional object with a TestType and a bool.",
58         "parameters": [
59           {
60             "name": "paramObject",
61             "type": "object",
62             "properties": {
63               "testType": {"$ref": "simple_api.TestType", "optional": true},
64               "boolean": {"type": "boolean"}
65             }
66           },
67           {
68             "name": "callback",
69             "type": "function",
70             "parameters": []
71           }
72         ]
73       }
74     ]
75   }