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": { } |
+ } |
+ } |
+ } |
+ ] |
+ } |
+] |