Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: tools/json_schema_compiler/test/arrays.json

Issue 11827026: Overhaul JSON Schema Compiler to support a number of features required to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "arrays", 3 "namespace": "arrays",
4 "types": [ 4 "types": [
5 { 5 {
6 "id": "EnumArrayType", 6 "id": "EnumArrayType",
7 "type": "object", 7 "type": "object",
8 "properties": { 8 "properties": {
9 "types": { 9 "types": {
10 "type": "array", 10 "type": "array",
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 { 109 {
110 "name": "objectArray", 110 "name": "objectArray",
111 "type": "function", 111 "type": "function",
112 "description": "Takes some Items.", 112 "description": "Takes some Items.",
113 "parameters": [ 113 "parameters": [
114 { 114 {
115 "name": "objects", 115 "name": "objects",
116 "type": "array", 116 "type": "array",
117 "items": { 117 "items": {
118 "type": "object", 118 "type": "object",
119 "additionalProperties": {"type": "any"} 119 "additionalProperties": {"type": "integer"}
120 } 120 }
121 }, 121 },
122 { 122 {
123 "name": "callback", 123 "name": "callback",
124 "type": "function", 124 "type": "function",
125 "parameters": [] 125 "parameters": []
126 } 126 }
127 ] 127 ]
128 }, 128 },
129 { 129 {
130 "name": "refArray", 130 "name": "refArray",
131 "type": "function", 131 "type": "function",
132 "description": "Takes some Items.", 132 "description": "Takes some Items.",
133 "parameters": [ 133 "parameters": [
134 { 134 {
135 "name": "refs", 135 "name": "refs",
136 "type": "array", 136 "type": "array",
137 "items": {"$ref": "Item"} 137 "items": {"$ref": "Item"}
138 }, 138 },
139 { 139 {
140 "name": "callback", 140 "name": "callback",
141 "type": "function", 141 "type": "function",
142 "parameters": [] 142 "parameters": []
143 } 143 }
144 ] 144 ]
145 }, 145 },
146 { 146 {
147 "name": "justChoices",
148 "type": "function",
149 "description": "Takes some Choices.",
150 "parameters": [
151 {
152 "name": "choices",
153 "choices": [
154 { "type": "integer" },
155 { "type": "boolean" },
156 { "type": "array",
157 "items": {"$ref": "Item"}
158 }
159 ]
160 },
161 {
162 "name": "callback",
163 "type": "function",
164 "parameters": []
165 }
166 ]
167 },
168 {
169 "name": "choicesArray",
170 "type": "function",
171 "description": "Takes some Choices.",
172 "parameters": [
173 {
174 "name": "choices",
175 "type": "array",
176 "items": {
177 "choices": [
178 { "type": "integer" },
179 { "type": "boolean" },
180 { "type": "array",
181 "items": {"$ref": "Item"}
182 }
183 ]
184 }
185 },
186 {
187 "name": "callback",
188 "type": "function",
189 "parameters": []
190 }
191 ]
192 },
193 {
147 "name": "returnIntegerArray", 194 "name": "returnIntegerArray",
148 "type": "function", 195 "type": "function",
149 "description": "Returns some integers.", 196 "description": "Returns some integers.",
150 "parameters": [ 197 "parameters": [
151 { 198 {
152 "name": "callback", 199 "name": "callback",
153 "type": "function", 200 "type": "function",
154 "parameters": [ 201 "parameters": [
155 { 202 {
156 "name": "integers", 203 "name": "integers",
(...skipping 18 matching lines...) Expand all
175 "type": "array", 222 "type": "array",
176 "items": {"$ref": "Item"} 223 "items": {"$ref": "Item"}
177 } 224 }
178 ] 225 ]
179 } 226 }
180 ] 227 ]
181 } 228 }
182 ] 229 ]
183 } 230 }
184 ] 231 ]
OLDNEW
« no previous file with comments | « tools/json_schema_compiler/test/any_unittest.cc ('k') | tools/json_schema_compiler/test/arrays_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698