| 1 | { |
| 2 | "post": { |
| 3 | "operationId": "multi_param_api_test_multi_body_file", |
| 4 | "summary": "Test Multi Body 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 | "i": { |
| 31 | "title": "I", |
| 32 | "type": "integer" |
| 33 | }, |
| 34 | "s": { |
| 35 | "title": "S", |
| 36 | "default": "a-str", |
| 37 | "type": "string" |
| 38 | }, |
| 39 | "data": { |
| 40 | "title": "Data4 Title", |
| 41 | "description": "Data4 Desc", |
| 42 | "$ref": "#/components/schemas/TestData4" |
| 43 | }, |
| 44 | "nested-data": { |
| 45 | "$ref": "#/components/schemas/TestData" |
| 46 | } |
| 47 | }, |
| 48 | "required": [ |
| 49 | "file", |
| 50 | "i", |
| 51 | "data", |
| 52 | "nested-data" |
| 53 | ] |
| 54 | } |
| 55 | } |
| 56 | }, |
| 57 | "required": true |
| 58 | } |
| 59 | } |
| 60 | } |