Only grant permissions to new extensions from sync if they have the expected version
[chromium-blink-merge.git] / tools / json_schema_compiler / test / crossref.json
blobca67a46a309f134115117de05d4ac8afa3be4fea
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           },
14           "testEnumRequired": {
15             "$ref": "simple_api.TestEnum"
16           },
17           "testEnumOptional": {
18             "$ref": "simple_api.TestEnum",
19             "optional": true
20           },
21           "testEnumOptionalExtra": {
22             "$ref": "simple_api.TestEnum",
23             "optional": true
24           }
25         }
26       }
27     ],
28     "functions": [
29       {
30         "name": "testTypeOptionalParam",
31         "type": "function",
32         "description": "Takes TestType as a param.",
33         "parameters": [
34           {
35             "name": "testType",
36             "$ref": "simple_api.TestType",
37             "optional": true
38           },
39           {
40             "name": "callback",
41             "type": "function",
42             "parameters": []
43           }
44         ]
45       },
46       {
47         "name": "getTestType",
48         "type": "function",
49         "description": "Return a TestType.",
50         "parameters": [
51           {
52             "name": "callback",
53             "type": "function",
54             "parameters": [
55               {
56                 "name": "result",
57                 "$ref": "simple_api.TestType",
58                 "description": "A TestType."
59               }
60             ]
61           }
62         ]
63       },
64       {
65         "name": "testTypeInObject",
66         "type": "function",
67         "description": "Takes an optional object with a TestType and a bool.",
68         "parameters": [
69           {
70             "name": "paramObject",
71             "type": "object",
72             "properties": {
73               "testType": {"$ref": "simple_api.TestType", "optional": true},
74               "boolean": {"type": "boolean"}
75             }
76           },
77           {
78             "name": "callback",
79             "type": "function",
80             "parameters": []
81           }
82         ]
83       }
84     ]
85   }