Chromium Code Reviews| Index: tools/json_schema_compiler/test/forbidden.json |
| diff --git a/tools/json_schema_compiler/test/forbidden.json b/tools/json_schema_compiler/test/forbidden.json |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c7978aaa9b54423fbd4d0246f74450110e31ff80 |
| --- /dev/null |
| +++ b/tools/json_schema_compiler/test/forbidden.json |
| @@ -0,0 +1,39 @@ |
| +[ |
|
Matt Tytel
2012/07/12 03:31:28
Didn't want people to think this was a good idea.
not at google - send to devlin
2012/07/12 03:36:50
why not?
Matt Tytel
2012/07/13 02:34:43
I just thought if your parameters are this complex
not at google - send to devlin
2012/07/13 02:40:32
Yeah, hopefully that's the kind of thing that woul
|
| + { |
| + "namespace": "forbidden", |
| + "types": [], |
| + "functions": [ |
| + { |
| + "name": "forbiddenParameters", |
| + "type": "function", |
| + "description": "Don't do this at home. Accepts multiple choices and values", |
| + "parameters": [ |
| + { |
| + "name": "firstChoice", |
| + "description": "a choice between int and array", |
| + "choices": [ |
| + {"type": "integer", "minimum": 0}, |
| + {"type": "array", "items": {"type": "integer"}} |
| + ] |
| + }, |
| + { |
| + "type": "string", |
| + "name": "firstString" |
| + }, |
| + { |
| + "name": "secondChoice", |
| + "description": "a choice between int and array", |
| + "choices": [ |
| + {"type": "integer", "minimum": 0}, |
| + {"type": "array", "items": {"type": "integer"}} |
| + ] |
| + }, |
| + { |
| + "type": "string", |
| + "name": "secondString" |
| + } |
| + ] |
| + } |
| + ] |
| + } |
| +] |