Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 [ | |
|
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
| |
| 2 { | |
| 3 "namespace": "forbidden", | |
| 4 "types": [], | |
| 5 "functions": [ | |
| 6 { | |
| 7 "name": "forbiddenParameters", | |
| 8 "type": "function", | |
| 9 "description": "Don't do this at home. Accepts multiple choices and valu es", | |
| 10 "parameters": [ | |
| 11 { | |
| 12 "name": "firstChoice", | |
| 13 "description": "a choice between int and array", | |
| 14 "choices": [ | |
| 15 {"type": "integer", "minimum": 0}, | |
| 16 {"type": "array", "items": {"type": "integer"}} | |
| 17 ] | |
| 18 }, | |
| 19 { | |
| 20 "type": "string", | |
| 21 "name": "firstString" | |
| 22 }, | |
| 23 { | |
| 24 "name": "secondChoice", | |
| 25 "description": "a choice between int and array", | |
| 26 "choices": [ | |
| 27 {"type": "integer", "minimum": 0}, | |
| 28 {"type": "array", "items": {"type": "integer"}} | |
| 29 ] | |
| 30 }, | |
| 31 { | |
| 32 "type": "string", | |
| 33 "name": "secondString" | |
| 34 } | |
| 35 ] | |
| 36 } | |
| 37 ] | |
| 38 } | |
| 39 ] | |
| OLD | NEW |