| 1 | { |
| 2 | "post": { |
| 3 | "operationId": "multi_param_api_test_multi_body_form_file", |
| 4 | "summary": "Test Multi Body Form File", |
| 5 | "parameters": [], |
| 6 | "responses": { |
| 7 | "200": { |
| 8 | "description": "OK", |
| 9 | "content": { |
| 10 | "application/json": { |
| 11 | "schema": { |
| 12 | "$ref": "#/components/schemas/ResponseData" |
| 13 | } |
| 14 | } |
| 15 | } |
| 16 | } |
| 17 | }, |
| 18 | "requestBody": { |
| 19 | "content": { |
| 20 | "multipart/form-data": { |
| 21 | "schema": { |
| 22 | "title": "MultiPartBodyParams", |
| 23 | "type": "object", |
| 24 | "properties": { |
| 25 | "file": { |
| 26 | "title": "File", |
| 27 | "type": "string", |
| 28 | "format": "binary" |
| 29 | }, |
| 30 | "s": { |
| 31 | "title": "S", |
| 32 | "default": "a-str", |
| 33 | "type": "string" |
| 34 | }, |
| 35 | "foo": { |
| 36 | "title": "Foo", |
| 37 | "type": "integer" |
| 38 | }, |
| 39 | "bar": { |
| 40 | "title": "Bar", |
| 41 | "default": "11bar", |
| 42 | "type": "string" |
| 43 | }, |
| 44 | "foo2": { |
| 45 | "title": "Foo2 Title", |
| 46 | "description": "Foo2 Desc", |
| 47 | "default": 22, |
| 48 | "type": "integer" |
| 49 | }, |
| 50 | "bar2": { |
| 51 | "title": "Bar2", |
| 52 | "type": "string" |
| 53 | }, |
| 54 | "foo3": { |
| 55 | "title": "Foo3 Title", |
| 56 | "description": "Foo3 Desc", |
| 57 | "type": "integer" |
| 58 | }, |
| 59 | "bar3": { |
| 60 | "title": "Bar3", |
| 61 | "default": "33bar", |
| 62 | "type": "string" |
| 63 | }, |
| 64 | "i": { |
| 65 | "title": "I", |
| 66 | "type": "integer" |
| 67 | }, |
| 68 | "data": { |
| 69 | "title": "Data4 Title", |
| 70 | "description": "Data4 Desc", |
| 71 | "$ref": "#/components/schemas/TestData4" |
| 72 | } |
| 73 | }, |
| 74 | "required": [ |
| 75 | "file", |
| 76 | "foo", |
| 77 | "bar2", |
| 78 | "foo3", |
| 79 | "i", |
| 80 | "data" |
| 81 | ] |
| 82 | } |
| 83 | } |
| 84 | }, |
| 85 | "required": true |
| 86 | } |
| 87 | } |
| 88 | } |