(paths: Record<string, unknown>)
| 95 | } |
| 96 | |
| 97 | function patchFileUpload(paths: Record<string, unknown>): void { |
| 98 | const operation = getOperation(paths, '/api/v1/files', 'post'); |
| 99 | if (operation === undefined) return; |
| 100 | |
| 101 | operation['requestBody'] = { |
| 102 | required: true, |
| 103 | content: { |
| 104 | 'multipart/form-data': { |
| 105 | schema: fileUploadMultipartSchema, |
| 106 | }, |
| 107 | }, |
| 108 | }; |
| 109 | } |
| 110 | |
| 111 | function patchFileDownload(paths: Record<string, unknown>): void { |
| 112 | const operation = getOperation(paths, '/api/v1/files/{file_id}', 'get'); |
no test coverage detected