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

Unified Diff: tools/json_schema_compiler/test/functions_as_parameters.json

Issue 10824002: JSON Schema Compiler supports functions as PropertyTypes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: bool function; becomes bool has_function; 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 side-by-side diff with in-line comments
Download patch
Index: tools/json_schema_compiler/test/functions_as_parameters.json
diff --git a/tools/json_schema_compiler/test/functions_as_parameters.json b/tools/json_schema_compiler/test/functions_as_parameters.json
new file mode 100644
index 0000000000000000000000000000000000000000..cdc47ff65b3b41ae54eb50223f59f52a9ed542ab
--- /dev/null
+++ b/tools/json_schema_compiler/test/functions_as_parameters.json
@@ -0,0 +1,28 @@
+[
+ {
+ "namespace": "functions_as_parameters",
+ "types": [
+ {
+ "id": "FunctionType",
+ "type": "object",
+ "properties": {
+ "event_callback": {
+ "type": "function",
+ "parameters": { }
+ }
+ }
+ },
+ {
+ "id": "OptionalFunctionType",
+ "type": "object",
+ "properties": {
+ "event_callback": {
+ "type": "function",
+ "optional": true,
+ "parameters": { }
+ }
+ }
+ }
+ ]
+ }
+]

Powered by Google App Engine
This is Rietveld 408576698