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

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

Issue 9491002: json_schema_compiler: any, additionalProperties, functions on types (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: add any in arrays to util.h Created 8 years, 9 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
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "arrays", 3 "namespace": "arrays",
4 "types": [ 4 "types": [
5 { 5 {
6 "id": "BasicArrayType", 6 "id": "BasicArrayType",
7 "type": "object", 7 "type": "object",
8 "properties": { 8 "properties": {
9 "strings": { 9 "strings": {
10 "type": "array", 10 "type": "array",
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 "items": {"type": "integer"} 56 "items": {"type": "integer"}
57 }, 57 },
58 { 58 {
59 "name": "callback", 59 "name": "callback",
60 "type": "function", 60 "type": "function",
61 "parameters": [] 61 "parameters": []
62 } 62 }
63 ] 63 ]
64 }, 64 },
65 { 65 {
66 "name": "anyArray",
67 "type": "function",
68 "description": "Takes some Items.",
69 "parameters": [
70 {
71 "name": "anys",
72 "type": "array",
73 "items": {"type": "any"}
74 },
75 {
76 "name": "callback",
77 "type": "function",
78 "parameters": []
79 }
80 ]
81 },
82 {
66 "name": "refArray", 83 "name": "refArray",
67 "type": "function", 84 "type": "function",
68 "description": "Takes some Items.", 85 "description": "Takes some Items.",
69 "parameters": [ 86 "parameters": [
70 { 87 {
71 "name": "refs", 88 "name": "refs",
72 "type": "array", 89 "type": "array",
73 "items": {"$ref": "Item"} 90 "items": {"$ref": "Item"}
74 }, 91 },
75 { 92 {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 "type": "array", 128 "type": "array",
112 "items": {"$ref": "Item"} 129 "items": {"$ref": "Item"}
113 } 130 }
114 ] 131 ]
115 } 132 }
116 ] 133 ]
117 } 134 }
118 ] 135 ]
119 } 136 }
120 ] 137 ]
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