diff options
Diffstat (limited to 'tools/json_schema_compiler/test/objects.json')
-rw-r--r-- | tools/json_schema_compiler/test/objects.json | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/tools/json_schema_compiler/test/objects.json b/tools/json_schema_compiler/test/objects.json new file mode 100644 index 0000000..8fb20b4 --- /dev/null +++ b/tools/json_schema_compiler/test/objects.json @@ -0,0 +1,60 @@ +[ + { + "namespace": "objects", + "types": [], + "functions": [ + { + "name": "objectParam", + "type": "function", + "description": "Takes an object.", + "parameters": [ + { + "name": "info", + "type": "object", + "properties": { + "strings": { + "type": "array", + "items": {"type": "string"} + }, + "integer": { + "type": "integer" + }, + "boolean": { + "type": "boolean" + } + } + }, + { + "name": "callback", + "type": "function", + "parameters": [] + } + ] + }, + { + "name": "returnsObject", + "description": "Returns an object.", + "type": "function", + "parameters": [ + { + "name": "callback", + "type": "function", + "parameters": [ + { + "name": "info", + "type": "object", + "properties": { + "state": { + "type": "string", + "enum": ["foo", "bar", "baz"] + } + } + } + ] + } + ] + } + ] + } +] + |