Fix a type mismatch on Windows caused by r201738.
[chromium-blink-merge.git] / tools / json_schema_compiler / test / objects.json
blob00a7f5320269f75ebb00cf03b6edff52fa13f992
2   {
3     "namespace": "objects",
4     "types": [],
5     "functions": [
6       {
7         "name": "objectParam",
8         "type": "function",
9         "description": "Takes an object.",
10         "parameters": [
11           {
12             "name": "info",
13             "type": "object",
14             "properties": {
15               "strings": {
16                 "type": "array",
17                 "items": {"type": "string"}
18               },
19               "integer": {
20                 "type": "integer"
21               },
22               "boolean": {
23                 "type": "boolean"
24               }
25             }
26           },
27           {
28             "name": "callback",
29             "type": "function",
30             "parameters": []
31           }
32         ]
33       },
34       {
35         "name": "returnsObject",
36         "description": "Returns an object.",
37         "type": "function",
38         "parameters": [
39           {
40             "name": "callback",
41             "type": "function",
42             "parameters": [
43               {
44                 "name": "info",
45                 "type": "object",
46                 "properties": {
47                   "state": {
48                     "type": "string",
49                     "enum": ["foo", "bar", "baz"]
50                   }
51                 }
52               }
53             ]
54           }
55         ]
56       },
57       {
58         "name": "returnsTwoObjects",
59         "description": "Return two objects.",
60         "type": "function",
61         "parameters": [
62           {
63             "name": "callback",
64             "type": "function",
65             "parameters": [
66               {
67                 "name": "firstInfo",
68                 "type": "object",
69                 "properties": {
70                   "state": {
71                     "type": "string",
72                     "enum": ["foo", "bar", "baz"]
73                   }
74                 }
75               },
76               {
77                 "name": "secondInfo",
78                 "type": "object",
79                 "properties": {
80                   "state": {
81                     "type": "string",
82                     "enum": ["spam", "ham", "eggs"]
83                   }
84                 }
85               }
86             ]
87           }
88         ]
89       }
90     ],
91     "events": [
92       {
93         "name": "onObjectFired",
94         "type": "function",
95         "description": "Fired when an object is ready.",
96         "parameters": [
97           {
98             "name": "someObject",
99             "type": "object",
100             "properties": {
101               "state": {
102                 "type": "string",
103                 "enum": ["foo", "bar", "baz"]
104               }
105             }
106           }
107         ]
108       },
109       {
110         "name": "onTwoObjectsFired",
111         "type": "function",
112         "description": "Fired when two objects are ready.",
113         "parameters": [
114           {
115             "name": "firstObject",
116             "type": "object",
117             "properties": {
118               "state": {
119                 "type": "string",
120                 "enum": ["foo", "bar", "baz"]
121               }
122             }
123           },
124           {
125             "name": "secondObject",
126             "type": "object",
127             "properties": {
128               "state": {
129                 "type": "string",
130                 "enum": ["spam", "ham", "eggs"]
131               }
132             }
133           }
134         ]
135       }
136     ]
137   }