fork of hey-api/openapi-ts because I need some additional things
1openapi: 3.0.0
2info:
3 title: OpenAPI 3.0.0 ref deep example
4 version: '1'
5paths:
6 /foo:
7 get:
8 responses:
9 '200':
10 description: OK
11 content:
12 application/json:
13 schema:
14 type: array
15 items:
16 type: object
17 properties:
18 foo:
19 type: integer
20 bar:
21 type: string
22 post:
23 responses:
24 '200':
25 description: OK
26 content:
27 application/json:
28 schema:
29 type: object
30 properties:
31 foo:
32 $ref: '#/paths/~1foo/get/responses/200/content/application~1json/schema/items'
33 bar:
34 type: string
35components:
36 schemas:
37 Foo:
38 type: object
39 properties:
40 foo:
41 type: array
42 items:
43 type: object
44 properties:
45 baz:
46 type: string
47 bar:
48 type: array
49 items:
50 type: object
51 properties:
52 baz:
53 type: string
54 Bar:
55 type: object
56 properties:
57 foo:
58 type: array
59 items:
60 $ref: '#/components/schemas/Foo/properties/foo/items'
61 bar:
62 type: array
63 items:
64 $ref: '#/components/schemas/Foo/properties/bar/items'