fork of hey-api/openapi-ts because I need some additional things
1openapi: 3.0.1
2info:
3 title: OpenAPI 3.0.1 transformers all of example
4 version: 1
5paths:
6 /foo:
7 get:
8 responses:
9 '200':
10 content:
11 '*/*':
12 schema:
13 $ref: '#/components/schemas/Foo'
14 description: OK
15components:
16 schemas:
17 Foo:
18 type: object
19 properties:
20 foo:
21 type: array
22 items:
23 $ref: '#/components/schemas/Bar'
24 required:
25 - foo
26 Bar:
27 type: object
28 properties:
29 foo:
30 type: array
31 items:
32 oneOf:
33 - $ref: '#/components/schemas/Baz'
34 bar:
35 type: string
36 enum:
37 - foo
38 - bar
39 - baz
40 required:
41 - foo
42 - bar
43 Baz:
44 type: object
45 allOf:
46 - $ref: '#/components/schemas/Qux'
47 - type: object
48 properties:
49 foo:
50 format: int32
51 type: integer
52 bar:
53 format: date-time
54 type: string
55 baz:
56 type: string
57 enum:
58 - foo
59 - bar
60 - baz
61 qux:
62 format: int32
63 type: integer
64 required:
65 - foo
66 - bar
67 - baz
68 - qux
69 Qux:
70 type: object
71 discriminator:
72 propertyName: id
73 properties:
74 foo:
75 type: integer
76 format: int32
77 bar:
78 type: number
79 baz:
80 format: date-time
81 type: string
82 id:
83 type: string
84 required:
85 - foo
86 - bar
87 - id