Index: tools/json_schema_compiler/test/additionalProperties.json |
diff --git a/tools/json_schema_compiler/test/additionalProperties.json b/tools/json_schema_compiler/test/additionalProperties.json |
new file mode 100644 |
index 0000000000000000000000000000000000000000..03bbef8ea5fc84a6dffbcf7c2ed3c59cb7d491bd |
--- /dev/null |
+++ b/tools/json_schema_compiler/test/additionalProperties.json |
@@ -0,0 +1,55 @@ |
+[ |
+ { |
+ "namespace": "additionalProperties", |
+ "types": [ |
+ { |
+ "id": "AdditionalPropertiesType", |
+ "type": "object", |
+ "properties": { |
+ "string": { |
+ "type": "string", |
+ "description": "Some string." |
+ } |
+ }, |
+ "additionalProperties": { "type": "any" } |
+ } |
+ ], |
+ "functions": [ |
+ { |
+ "name": "additionalProperties", |
+ "type": "function", |
+ "description": "Takes an object with additionalProperties", |
+ "parameters": [ |
+ { |
+ "name": "paramObject", |
+ "type": "object", |
+ "properties": {}, |
+ "additionalProperties": {"type": "any"} |
+ } |
+ ] |
+ }, |
+ { |
+ "name": "returnAdditionalProperties", |
+ "type": "function", |
+ "description": "Returns an object with additionalProperties.", |
+ "nodoc": "true", |
+ "parameters": [ |
+ { |
+ "type": "function", |
+ "name": "callback", |
+ "parameters": [ |
+ { |
+ "name": "resultObject", |
+ "type": "object", |
+ "properties": { |
+ "integer": {"type": "integer"} |
+ }, |
+ "additionalProperties": {"type": "any"} |
+ } |
+ ] |
+ } |
+ ] |
+ } |
+ ] |
+ } |
+] |