MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / patchFileUpload

Function patchFileUpload

packages/server/src/openapi/transforms.ts:97–109  ·  view source on GitHub ↗
(paths: Record<string, unknown>)

Source from the content-addressed store, hash-verified

95}
96
97function 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
111function patchFileDownload(paths: Record<string, unknown>): void {
112 const operation = getOperation(paths, '/api/v1/files/{file_id}', 'get');

Callers 1

transformOpenApiDocumentFunction · 0.85

Calls 1

getOperationFunction · 0.85

Tested by

no test coverage detected