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

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

Issue 10701012: JSON Schema Compiler: Added event compilation. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Synced. Created 8 years, 5 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": "choices", 3 "namespace": "choices",
4 "types": [], 4 "types": [],
5 "functions": [ 5 "functions": [
6 { 6 {
7 "name": "takesIntegers", 7 "name": "takesIntegers",
8 "type": "function", 8 "type": "function",
9 "description": "Takes one or more integers.", 9 "description": "Takes one or more integers.",
10 "parameters": [ 10 "parameters": [
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 "name": "result", 88 "name": "result",
89 "choices": [ 89 "choices": [
90 {"type": "array", "items": {"type": "integer", "minimum": 0}} , 90 {"type": "array", "items": {"type": "integer", "minimum": 0}} ,
91 {"type": "integer"} 91 {"type": "integer"}
92 ], 92 ],
93 "description": "Some integers." 93 "description": "Some integers."
94 } 94 }
95 ] 95 ]
96 } 96 }
97 ] 97 ]
98 },
99 {
100 "name": "returnMultipleChoices",
101 "type": "function",
102 "description": "Gives back two values where each is an integer or a list of integers.",
103 "parameters": [
104 {
105 "name": "callback",
106 "type": "function",
107 "parameters": [
108 {
109 "name": "firstResult",
110 "choices": [
111 {"type": "array", "items": {"type": "integer", "minimum": 0}} ,
112 {"type": "integer"}
113 ],
114 "description": "Some integers."
115 },
116 {
117 "name": "secondResult",
118 "choices": [
119 {"type": "array", "items": {"type": "integer", "minimum": 0}} ,
120 {"type": "integer"}
121 ],
122 "description": "Some integers."
123 }
124 ]
125 }
126 ]
98 } 127 }
99 ] 128 ]
100 } 129 }
101 ] 130 ]
OLDNEW
« no previous file with comments | « tools/json_schema_compiler/test/callbacks_unittest.cc ('k') | tools/json_schema_compiler/test/choices_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698