fork of hey-api/openapi-ts because I need some additional things
1swagger: '2.0'
2info:
3 title: OpenAPI 2.0 array items allOf example
4 version: '1'
5definitions:
6 ArrayWithAllOfObjects:
7 type: array
8 items:
9 allOf:
10 - type: object
11 properties:
12 id:
13 type: integer
14 - type: object
15 properties:
16 name:
17 type: string
18 ArrayWithAllOfPrimitives:
19 type: array
20 items:
21 allOf:
22 - type: number
23 - type: string
24 ArrayWithAllOfRefs:
25 type: array
26 items:
27 allOf:
28 - $ref: '#/definitions/BaseModel'
29 - type: object
30 properties:
31 extra:
32 type: string
33 BaseModel:
34 type: object
35 properties:
36 id:
37 type: integer
38 createdAt:
39 type: string
40 format: date-time