fork of hey-api/openapi-ts because I need some additional things
1openapi: 3.1.1
2info:
3 title: OpenAPI 3.1.1 headers example
4 version: 1
5paths:
6 /foo:
7 get:
8 parameters:
9 - in: header
10 name: Content-Type
11 required: true
12 schema:
13 type: string
14 requestBody:
15 required: true
16 content:
17 application/json:
18 schema:
19 type: string
20 responses:
21 '200':
22 description: OK
23 content:
24 application/json:
25 schema:
26 type: string
27 patch:
28 parameters:
29 - in: header
30 name: Content-Type
31 required: false
32 schema:
33 type: string
34 requestBody:
35 required: false
36 content:
37 application/json:
38 schema:
39 type: string
40 responses:
41 '200':
42 description: OK
43 content:
44 application/json:
45 schema:
46 type: string
47 post:
48 parameters:
49 - in: header
50 name: content-type
51 required: false
52 schema:
53 type: string
54 requestBody:
55 required: true
56 content:
57 application/json:
58 schema:
59 type: string
60 responses:
61 '200':
62 description: OK
63 content:
64 application/json:
65 schema:
66 type: string
67 put:
68 requestBody:
69 required: true
70 content:
71 application/json:
72 schema:
73 type: string
74 responses:
75 '200':
76 description: OK
77 content:
78 application/json:
79 schema:
80 type: string