 Chromium Code Reviews
 Chromium Code Reviews Issue 9491002:
  json_schema_compiler: any, additionalProperties, functions on types  (Closed) 
  Base URL: http://git.chromium.org/chromium/src.git@master
    
  
    Issue 9491002:
  json_schema_compiler: any, additionalProperties, functions on types  (Closed) 
  Base URL: http://git.chromium.org/chromium/src.git@master| Index: tools/json_schema_compiler/test/any.json | 
| diff --git a/tools/json_schema_compiler/test/any.json b/tools/json_schema_compiler/test/any.json | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..b19db828e7b2c184fc736d23c060a93379db55ea | 
| --- /dev/null | 
| +++ b/tools/json_schema_compiler/test/any.json | 
| @@ -0,0 +1,54 @@ | 
| +[ | 
| + { | 
| + "namespace": "any", | 
| + "types": [ | 
| + { | 
| + "id": "AnyType", | 
| + "type": "object", | 
| + "properties": { | 
| + "any": { | 
| + "type": "any", | 
| + "description": "Any way you want it, that's the way you need it." | 
| + } | 
| + } | 
| + } | 
| + ], | 
| + "functions": [ | 
| + { | 
| + "name": "optionalAny", | 
| + "type": "function", | 
| + "description": "Takes an optional any param.", | 
| + "parameters": [ | 
| + { | 
| + "type": "any", | 
| + "name": "any", | 
| + "optional": true | 
| + }, | 
| + { | 
| + "type": "function", | 
| + "name": "callback", | 
| + "parameters": [] | 
| + } | 
| + ] | 
| + }, | 
| + { | 
| + "name": "returnAny", | 
| + "type": "function", | 
| + "description": "Returns any.", | 
| + "nodoc": "true", | 
| + "parameters": [ | 
| + { | 
| + "type": "function", | 
| + "name": "callback", | 
| + "parameters": [ | 
| + { | 
| + "name": "result", | 
| + "type": "any" | 
| + } | 
| + ] | 
| + } | 
| + ] | 
| + } | 
| + ] | 
| + } | 
| +] |