OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "namespace": "choices", | 3 "namespace": "choices", |
4 "types": [], | 4 "types": [ |
| 5 { |
| 6 "id": "ChoiceType", |
| 7 "type": "object", |
| 8 "properties": { |
| 9 "integers": { |
| 10 "choices": [ |
| 11 {"type": "array", "items": {"type": "integer", "minimum": 0}}, |
| 12 {"type": "integer"} |
| 13 ] |
| 14 }, |
| 15 "strings": { |
| 16 "choices": [ |
| 17 {"type": "array", "items": {"type": "string", "minimum": 0}}, |
| 18 {"type": "string"} |
| 19 ], |
| 20 "optional": true |
| 21 } |
| 22 } |
| 23 } |
| 24 ], |
5 "functions": [ | 25 "functions": [ |
6 { | 26 { |
7 "name": "takesIntegers", | 27 "name": "takesIntegers", |
8 "type": "function", | 28 "type": "function", |
9 "description": "Takes one or more integers.", | 29 "description": "Takes one or more integers.", |
10 "parameters": [ | 30 "parameters": [ |
11 { | 31 { |
12 "name": "nums", | 32 "name": "nums", |
13 "choices": [ | 33 "choices": [ |
14 {"type": "array", "items": {"type": "integer", "minimum": 0}}, | 34 {"type": "array", "items": {"type": "integer", "minimum": 0}}, |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 ], | 141 ], |
122 "description": "Some integers." | 142 "description": "Some integers." |
123 } | 143 } |
124 ] | 144 ] |
125 } | 145 } |
126 ] | 146 ] |
127 } | 147 } |
128 ] | 148 ] |
129 } | 149 } |
130 ] | 150 ] |
OLD | NEW |