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

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

Issue 10701012: JSON Schema Compiler: Added event compilation. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Tested GetAllPossibleParameterLists better. 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
(Empty)
1 [
Matt Tytel 2012/07/12 03:31:28 Didn't want people to think this was a good idea.
not at google - send to devlin 2012/07/12 03:36:50 why not?
Matt Tytel 2012/07/13 02:34:43 I just thought if your parameters are this complex
not at google - send to devlin 2012/07/13 02:40:32 Yeah, hopefully that's the kind of thing that woul
2 {
3 "namespace": "forbidden",
4 "types": [],
5 "functions": [
6 {
7 "name": "forbiddenParameters",
8 "type": "function",
9 "description": "Don't do this at home. Accepts multiple choices and valu es",
10 "parameters": [
11 {
12 "name": "firstChoice",
13 "description": "a choice between int and array",
14 "choices": [
15 {"type": "integer", "minimum": 0},
16 {"type": "array", "items": {"type": "integer"}}
17 ]
18 },
19 {
20 "type": "string",
21 "name": "firstString"
22 },
23 {
24 "name": "secondChoice",
25 "description": "a choice between int and array",
26 "choices": [
27 {"type": "integer", "minimum": 0},
28 {"type": "array", "items": {"type": "integer"}}
29 ]
30 },
31 {
32 "type": "string",
33 "name": "secondString"
34 }
35 ]
36 }
37 ]
38 }
39 ]
OLDNEW
« no previous file with comments | « tools/json_schema_compiler/test/enums_unittest.cc ('k') | tools/json_schema_compiler/test/functions_on_types_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698