fork of hey-api/openapi-ts because I need some additional things
1{
2 "swagger": "2.0",
3 "info": {
4 "title": "OpenAPI 2.0 form data example",
5 "version": "1"
6 },
7 "paths": {
8 "/v1/foo": {
9 "post": {
10 "consumes": ["multipart/form-data"],
11 "parameters": [
12 {
13 "in": "formData",
14 "name": "file",
15 "required": true,
16 "type": "file"
17 },
18 {
19 "in": "formData",
20 "name": "info",
21 "required": true,
22 "type": "string"
23 }
24 ],
25 "responses": {
26 "200": {
27 "description": "OK",
28 "schema": {
29 "$ref": "#/definitions/Foo"
30 }
31 }
32 }
33 }
34 }
35 },
36 "definitions": {
37 "Foo": {
38 "type": "object",
39 "properties": {
40 "status": {
41 "type": "integer"
42 }
43 }
44 }
45 }
46}