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