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

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

Issue 10701012: JSON Schema Compiler: Added event compilation. (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": "enums", 3 "namespace": "enums",
4 "types": [ 4 "types": [
5 { 5 {
6 "id": "EnumType", 6 "id": "EnumType",
7 "type": "object", 7 "type": "object",
8 "properties": { 8 "properties": {
9 "type": { 9 "type": {
10 "type": "string", 10 "type": "string",
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 "enum": ["foo", "ding", "dong"], 77 "enum": ["foo", "ding", "dong"],
78 "optional": true 78 "optional": true
79 }, 79 },
80 { 80 {
81 "name": "callback", 81 "name": "callback",
82 "type": "function", 82 "type": "function",
83 "parameters": [] 83 "parameters": []
84 } 84 }
85 ] 85 ]
86 } 86 }
87 ],
88 "events": [
89 {
90 "name": "onEnumFired",
91 "type": "function",
92 "description": "Fired when an enum is ready.",
93 "parameters": [
94 {
95 "name": "someEnum",
96 "type": "string",
97 "enum": ["foo", "bar", "baz"]
98 }
99 ]
100 }
87 ] 101 ]
88 } 102 }
89 ] 103 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698