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

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

Issue 9456007: Add wider support to json_schema_compiler (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: reupload 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
« no previous file with comments | « tools/json_schema_compiler/model.py ('k') | tools/json_schema_compiler/test/array_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 [
2 {
3 "namespace": "array",
4 "types": [
5 {
6 "id": "BasicArrayType",
7 "type": "object",
8 "properties": {
9 "strings": {
10 "type": "array",
11 "items": {"type": "string"}
12 },
13 "booleans": {
14 "type": "array",
15 "items": {"type": "boolean"}
16 },
17 "numbers": {
18 "type": "array",
19 "items": {"type": "number"}
20 },
21 "integers": {
22 "type": "array",
23 "items": {"type": "integer"}
24 }
25 }
26 },
27 {
28 "id": "Item",
29 "type": "object",
30 "properties": {
31 "val": {
32 "type": "integer"
33 }
34 }
35 },
36 {
37 "id": "RefArrayType",
38 "type": "object",
39 "properties": {
40 "refs": {
41 "type": "array",
42 "items": { "$ref": "Item" }
43 }
44 }
45 }
46 ],
47 "functions": [
48 {
49 "name": "integerArray",
50 "type": "function",
51 "description": "Increments the given integer.",
52 "parameters": [
53 {
54 "name": "nums",
55 "type": "array",
56 "items": {"type": "integer"}
57 },
58 {
59 "name": "callback",
60 "type": "function",
61 "parameters": []
62 }
63 ]
64 },
65 {
66 "name": "refArray",
67 "type": "function",
68 "description": "Takes some Items.",
69 "parameters": [
70 {
71 "name": "refs",
72 "type": "array",
73 "items": {"$ref": "Item"}
74 },
75 {
76 "name": "callback",
77 "type": "function",
78 "parameters": []
79 }
80 ]
81 },
82 {
83 "name": "returnIntegerArray",
84 "type": "function",
85 "description": "Returns some integers.",
86 "parameters": [
87 {
88 "name": "callback",
89 "type": "function",
90 "parameters": [
91 {
92 "name": "integers",
93 "type": "array",
94 "items": {"type": "integer"}
95 }
96 ]
97 }
98 ]
99 },
100 {
101 "name": "returnRefArray",
102 "type": "function",
103 "description": "Returns some Items.",
104 "parameters": [
105 {
106 "name": "callback",
107 "type": "function",
108 "parameters": [
109 {
110 "name": "refs",
111 "type": "array",
112 "items": {"$ref": "Item"}
113 }
114 ]
115 }
116 ]
117 }
118 ]
119 }
120 ]
OLDNEW
« no previous file with comments | « tools/json_schema_compiler/model.py ('k') | tools/json_schema_compiler/test/array_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698