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

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

Issue 10790040: JSON Schema Compiler now supports conversion from Choice to base::Value. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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 {
6 "id": "ChoiceType",
7 "type": "object",
8 "properties": {
9 "integers": {
10 "choices": [
11 {"type": "array", "items": {"type": "integer", "minimum": 0}},
12 {"type": "integer"}
13 ]
14 },
15 "strings": {
16 "choices": [
17 {"type": "array", "items": {"type": "string", "minimum": 0}},
18 {"type": "string"}
19 ],
20 "optional": true
21 }
22 }
23 }
24 ],
5 "functions": [ 25 "functions": [
6 { 26 {
7 "name": "takesIntegers", 27 "name": "takesIntegers",
8 "type": "function", 28 "type": "function",
9 "description": "Takes one or more integers.", 29 "description": "Takes one or more integers.",
10 "parameters": [ 30 "parameters": [
11 { 31 {
12 "name": "nums", 32 "name": "nums",
13 "choices": [ 33 "choices": [
14 {"type": "array", "items": {"type": "integer", "minimum": 0}}, 34 {"type": "array", "items": {"type": "integer", "minimum": 0}},
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 ], 141 ],
122 "description": "Some integers." 142 "description": "Some integers."
123 } 143 }
124 ] 144 ]
125 } 145 }
126 ] 146 ]
127 } 147 }
128 ] 148 ]
129 } 149 }
130 ] 150 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698