fork of hey-api/openapi-ts because I need some additional things
1{
2 "openapi": "3.1.0",
3 "info": {
4 "title": "Sample API",
5 "version": "1.0.0"
6 },
7 "paths": {
8 "/foo": {
9 "get": {
10 "summary": "Get foo",
11 "responses": {
12 "200": {
13 "description": "OK",
14 "content": {
15 "application/json": {
16 "schema": {
17 "type": "object",
18 "properties": {
19 "bar": {
20 "type": "string"
21 }
22 }
23 }
24 }
25 }
26 }
27 }
28 },
29 "post": {
30 "summary": "Create foo",
31 "responses": {
32 "200": {
33 "description": "OK",
34 "content": {
35 "application/json": {
36 "schema": {
37 "$ref": "#/paths/~1foo/get/responses/200/content/application~1json/schema"
38 }
39 }
40 }
41 }
42 }
43 }
44 }
45 }
46}