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

Side by Side Diff: tools/json_schema_compiler/test/crossref.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
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "crossref", 3 "namespace": "crossref",
4 "dependencies": ["simple_api"], 4 "dependencies": ["simple_api"],
5 "types": [], 5 "types": [
6 {
7 "id": "CrossrefType",
8 "type": "object",
9 "properties": {
10 "testType": {
11 "$ref": "TestType",
12 "optional": true
13 }
14 }
15 }
16 ],
6 "functions": [ 17 "functions": [
7 { 18 {
8 "name": "TestTypeOptionalParam", 19 "name": "testTypeOptionalParam",
9 "type": "function", 20 "type": "function",
10 "description": "Takes TestType as a param.", 21 "description": "Takes TestType as a param.",
11 "parameters": [ 22 "parameters": [
12 { 23 {
13 "name": "testType", 24 "name": "testType",
14 "$ref": "TestType", 25 "$ref": "TestType",
15 "optional": true 26 "optional": true
16 }, 27 },
17 { 28 {
18 "name": "callback", 29 "name": "callback",
(...skipping 12 matching lines...) Expand all
31 "type": "function", 42 "type": "function",
32 "parameters": [ 43 "parameters": [
33 { 44 {
34 "name": "result", 45 "name": "result",
35 "$ref": "TestType", 46 "$ref": "TestType",
36 "description": "A TestType." 47 "description": "A TestType."
37 } 48 }
38 ] 49 ]
39 } 50 }
40 ] 51 ]
52 },
53 {
54 "name": "testTypeInObject",
55 "type": "function",
56 "description": "Takes an optional object with a TestType and a bool.",
57 "parameters": [
58 {
59 "name": "paramObject",
60 "type": "object",
61 "properties": {
62 "testType": {"$ref": "TestType", "optional": true},
63 "boolean": {"type": "boolean"}
64 }
65 },
66 {
67 "name": "callback",
68 "type": "function",
69 "parameters": []
70 }
71 ]
41 } 72 }
42 ] 73 ]
43 } 74 }
44 ] 75 ]
OLDNEW
« no previous file with comments | « tools/json_schema_compiler/test/choices_unittest.cc ('k') | tools/json_schema_compiler/test/crossref_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698