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

Function getOperation

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

Source from the content-addressed store, hash-verified

237}
238
239function getOperation(
240 paths: Record<string, unknown>,
241 path: string,
242 method: string,
243): Record<string, unknown> | undefined {
244 const pathItem = asRecord(paths[path]);
245 if (pathItem === undefined) return undefined;
246 return asRecord(pathItem[method]);
247}
248
249function setResponse(
250 operation: Record<string, unknown>,

Callers 5

patchFileUploadFunction · 0.85
patchFileDownloadFunction · 0.85
patchFsActionFunction · 0.85
patchFsDownloadFunction · 0.85

Calls 1

asRecordFunction · 0.70

Tested by

no test coverage detected