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

Side by Side Diff: tools/json_schema_compiler/test/objects.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": "objects", 3 "namespace": "objects",
4 "types": [], 4 "types": [],
5 "functions": [ 5 "functions": [
6 { 6 {
7 "name": "objectParam", 7 "name": "objectParam",
8 "type": "function", 8 "type": "function",
9 "description": "Takes an object.", 9 "description": "Takes an object.",
10 "parameters": [ 10 "parameters": [
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 "state": { 47 "state": {
48 "type": "string", 48 "type": "string",
49 "enum": ["foo", "bar", "baz"] 49 "enum": ["foo", "bar", "baz"]
50 } 50 }
51 } 51 }
52 } 52 }
53 ] 53 ]
54 } 54 }
55 ] 55 ]
56 } 56 }
57 ],
58 "events": [
59 {
60 "name": "onObjectFired",
61 "type": "function",
62 "description": "Fired when an object is ready.",
63 "parameters": [
64 {
65 "name": "someObject",
66 "type": "object",
67 "properties": {
68 "state": {
69 "type": "string",
70 "enum": ["foo", "bar", "baz"]
71 }
72 }
73 }
74 ]
75 }
57 ] 76 ]
58 } 77 }
59 ] 78 ]
60 79
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698