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

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

Issue 10367002: Make all extension api types fully qualified. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix webrequest tests Created 8 years, 7 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 | Annotate | Revision Log
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "crossref", 3 "namespace": "crossref",
4 "dependencies": ["simple_api"], 4 "dependencies": ["simple_api"],
5 "types": [ 5 "types": [
6 { 6 {
7 "id": "CrossrefType", 7 "id": "CrossrefType",
8 "type": "object", 8 "type": "object",
9 "properties": { 9 "properties": {
10 "testType": { 10 "testType": {
11 "$ref": "TestType", 11 "$ref": "simple_api.TestType",
12 "optional": true 12 "optional": true
13 } 13 }
14 } 14 }
15 } 15 }
16 ], 16 ],
17 "functions": [ 17 "functions": [
18 { 18 {
19 "name": "testTypeOptionalParam", 19 "name": "testTypeOptionalParam",
20 "type": "function", 20 "type": "function",
21 "description": "Takes TestType as a param.", 21 "description": "Takes TestType as a param.",
22 "parameters": [ 22 "parameters": [
23 { 23 {
24 "name": "testType", 24 "name": "testType",
25 "$ref": "TestType", 25 "$ref": "simple_api.TestType",
26 "optional": true 26 "optional": true
27 }, 27 },
28 { 28 {
29 "name": "callback", 29 "name": "callback",
30 "type": "function", 30 "type": "function",
31 "parameters": [] 31 "parameters": []
32 } 32 }
33 ] 33 ]
34 }, 34 },
35 { 35 {
36 "name": "getTestType", 36 "name": "getTestType",
37 "type": "function", 37 "type": "function",
38 "description": "Return a TestType.", 38 "description": "Return a TestType.",
39 "parameters": [ 39 "parameters": [
40 { 40 {
41 "name": "callback", 41 "name": "callback",
42 "type": "function", 42 "type": "function",
43 "parameters": [ 43 "parameters": [
44 { 44 {
45 "name": "result", 45 "name": "result",
46 "$ref": "TestType", 46 "$ref": "simple_api.TestType",
47 "description": "A TestType." 47 "description": "A TestType."
48 } 48 }
49 ] 49 ]
50 } 50 }
51 ] 51 ]
52 }, 52 },
53 { 53 {
54 "name": "testTypeInObject", 54 "name": "testTypeInObject",
55 "type": "function", 55 "type": "function",
56 "description": "Takes an optional object with a TestType and a bool.", 56 "description": "Takes an optional object with a TestType and a bool.",
57 "parameters": [ 57 "parameters": [
58 { 58 {
59 "name": "paramObject", 59 "name": "paramObject",
60 "type": "object", 60 "type": "object",
61 "properties": { 61 "properties": {
62 "testType": {"$ref": "TestType", "optional": true}, 62 "testType": {"$ref": "simple_api.TestType", "optional": true},
63 "boolean": {"type": "boolean"} 63 "boolean": {"type": "boolean"}
64 } 64 }
65 }, 65 },
66 { 66 {
67 "name": "callback", 67 "name": "callback",
68 "type": "function", 68 "type": "function",
69 "parameters": [] 69 "parameters": []
70 } 70 }
71 ] 71 ]
72 } 72 }
73 ] 73 ]
74 } 74 }
75 ] 75 ]
OLDNEW
« no previous file with comments | « tools/json_schema_compiler/schema_util_test.py ('k') | tools/json_schema_compiler/test/dependencyTester.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698