fork of hey-api/openapi-ts because I need some additional things
1{
2 "openapi": "3.1.0",
3 "info": {
4 "title": "Petstore API",
5 "version": "1.0.0",
6 "description": "A sample API that uses a petstore as an example"
7 },
8 "servers": [
9 {
10 "url": "http://localhost:3000/v3"
11 }
12 ],
13 "paths": {
14 "/pets/{petId}": {
15 "get": {
16 "summary": "Find pet by ID",
17 "operationId": "showPetById",
18 "parameters": [
19 {
20 "name": "petId",
21 "in": "path",
22 "required": true,
23 "schema": {
24 "type": "string"
25 }
26 }
27 ],
28 "responses": {
29 "200": {
30 "description": "Pet found",
31 "content": {
32 "application/json": {
33 "schema": {
34 "type": "object",
35 "properties": {
36 "id": {
37 "type": "string"
38 },
39 "name": {
40 "type": "string"
41 }
42 }
43 }
44 }
45 }
46 }
47 }
48 }
49 },
50 "/pets": {
51 "get": {
52 "summary": "List all pets",
53 "operationId": "listPets",
54 "responses": {
55 "200": {
56 "description": "A list of pets",
57 "content": {
58 "application/json": {
59 "schema": {
60 "type": "array",
61 "items": {
62 "type": "object",
63 "properties": {
64 "id": {
65 "type": "string"
66 },
67 "name": {
68 "type": "string"
69 }
70 }
71 }
72 }
73 }
74 }
75 }
76 }
77 },
78 "post": {
79 "summary": "Create a pet",
80 "operationId": "createPets",
81 "responses": {
82 "201": {
83 "description": "Pet created"
84 }
85 }
86 }
87 }
88 }
89}