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