| Index: tools/json_schema_compiler/test/callbacks.json
|
| diff --git a/tools/json_schema_compiler/test/objects.json b/tools/json_schema_compiler/test/callbacks.json
|
| similarity index 53%
|
| copy from tools/json_schema_compiler/test/objects.json
|
| copy to tools/json_schema_compiler/test/callbacks.json
|
| index 8fb20b408343726956dad03917c47b6b610ac730..06455b99e056928f42356317f0fe53b61bfcd253 100644
|
| --- a/tools/json_schema_compiler/test/objects.json
|
| +++ b/tools/json_schema_compiler/test/callbacks.json
|
| @@ -1,30 +1,14 @@
|
| [
|
| {
|
| - "namespace": "objects",
|
| + "namespace": "callbacks",
|
| "types": [],
|
| "functions": [
|
| {
|
| - "name": "objectParam",
|
| + "name": "returnsNothing",
|
| "type": "function",
|
| - "description": "Takes an object.",
|
| + "description": "Takes nothing. Returns nothing.",
|
| "parameters": [
|
| {
|
| - "name": "info",
|
| - "type": "object",
|
| - "properties": {
|
| - "strings": {
|
| - "type": "array",
|
| - "items": {"type": "string"}
|
| - },
|
| - "integer": {
|
| - "type": "integer"
|
| - },
|
| - "boolean": {
|
| - "type": "boolean"
|
| - }
|
| - }
|
| - },
|
| - {
|
| "name": "callback",
|
| "type": "function",
|
| "parameters": []
|
| @@ -41,7 +25,34 @@
|
| "type": "function",
|
| "parameters": [
|
| {
|
| - "name": "info",
|
| + "name": "someObject",
|
| + "type": "object",
|
| + "properties": {
|
| + "state": {
|
| + "type": "string",
|
| + "enum": ["foo", "bar", "baz"]
|
| + }
|
| + }
|
| + }
|
| + ]
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "name": "returnsMultiple",
|
| + "description": "Returns an object.",
|
| + "type": "function",
|
| + "parameters": [
|
| + {
|
| + "name": "callback",
|
| + "type": "function",
|
| + "parameters": [
|
| + {
|
| + "name": "someInteger",
|
| + "type": "integer"
|
| + },
|
| + {
|
| + "name": "someObject",
|
| "type": "object",
|
| "properties": {
|
| "state": {
|
|
|