Chromium Code Reviews| 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..8e5b24bcc1e0fc4d45d223fa6af52625705ac3c5 |
| --- /dev/null |
| +++ b/tools/json_schema_compiler/test/additionalProperties.json |
| @@ -0,0 +1,46 @@ |
| +[ |
| + { |
| + "namespace": "additionalProperties", |
| + "types": [ |
| + ], |
|
not at google - send to devlin
2012/02/29 03:06:30
seems unnecessary
actually, what about additional
calamity
2012/03/01 04:47:09
Done.
|
| + "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"} |
| + } |
| + ] |
| + } |
| + ] |
| + } |
| + ] |
| + } |
| +] |
| + |
|
not at google - send to devlin
2012/02/29 03:06:30
some more things to test: (and in C++)
- more than
calamity
2012/03/01 04:47:09
Done.
|
| + |