OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "namespace": "arrays", | 3 "namespace": "arrays", |
4 "description": "The arrays API.", | 4 "description": "The arrays API.", |
5 "types": [ | 5 "types": [ |
6 { | 6 { |
7 "id": "EnumArrayType", | 7 "id": "EnumArrayType", |
8 "type": "object", | 8 "type": "object", |
9 "properties": { | 9 "properties": { |
10 "types": { | 10 "types": { |
11 "type": "array", | 11 "type": "array", |
12 "items": { | 12 "items": { |
13 "type": "string", | 13 "type": "string", |
14 "enum": ["one", "two", "three"] | 14 "enum": ["one", "two", "three"] |
15 } | 15 } |
16 } | 16 } |
17 } | 17 } |
18 }, | 18 }, |
19 { | 19 { |
| 20 "id": "Enumeration", |
| 21 "type": "string", |
| 22 "enum": ["one", "two", "three"] |
| 23 }, |
| 24 { |
| 25 "id": "EnumArrayReference", |
| 26 "type": "object", |
| 27 "properties": { |
| 28 "types": { |
| 29 "type": "array", |
| 30 "items": { |
| 31 "$ref": "Enumeration" |
| 32 } |
| 33 } |
| 34 } |
| 35 }, |
| 36 { |
| 37 "id": "EnumArrayMixed", |
| 38 "type": "object", |
| 39 "properties": { |
| 40 "inline_enums": { |
| 41 "type": "array", |
| 42 "items": { |
| 43 "type": "string", |
| 44 "enum": ["one", "two", "three"] |
| 45 } |
| 46 }, |
| 47 "infile_enums": { |
| 48 "type": "array", |
| 49 "items": { |
| 50 "$ref": "Enumeration" |
| 51 } |
| 52 }, |
| 53 "external_enums": { |
| 54 "type": "array", |
| 55 "items": { |
| 56 "$ref": "enums.Enumeration" |
| 57 } |
| 58 } |
| 59 } |
| 60 }, |
| 61 { |
20 "id": "OptionalEnumArrayType", | 62 "id": "OptionalEnumArrayType", |
21 "type": "object", | 63 "type": "object", |
22 "properties": { | 64 "properties": { |
23 "types": { | 65 "types": { |
24 "type": "array", | 66 "type": "array", |
25 "items": { | 67 "items": { |
26 "type": "string", | 68 "type": "string", |
27 "enum": ["one", "two", "three"] | 69 "enum": ["one", "two", "three"] |
28 }, | 70 }, |
29 "optional": true | 71 "optional": true |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 "type": "array", | 265 "type": "array", |
224 "items": {"$ref": "Item"} | 266 "items": {"$ref": "Item"} |
225 } | 267 } |
226 ] | 268 ] |
227 } | 269 } |
228 ] | 270 ] |
229 } | 271 } |
230 ] | 272 ] |
231 } | 273 } |
232 ] | 274 ] |
OLD | NEW |