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