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

Function setResponse

packages/server/src/openapi/transforms.ts:249–257  ·  view source on GitHub ↗
(
  operation: Record<string, unknown>,
  statusCode: string,
  response: Record<string, unknown>,
)

Source from the content-addressed store, hash-verified

247}
248
249function setResponse(
250 operation: Record<string, unknown>,
251 statusCode: string,
252 response: Record<string, unknown>,
253): void {
254 const responses = asRecord(operation['responses']) ?? {};
255 responses[statusCode] = response;
256 operation['responses'] = responses;
257}
258
259function jsonContent(schema: Record<string, unknown>): Record<string, unknown> {
260 return {

Callers 5

patchFileDownloadFunction · 0.85
patchSessionActionsFunction · 0.85
patchFsActionFunction · 0.85
patchFsDownloadFunction · 0.85

Calls 1

asRecordFunction · 0.70

Tested by

no test coverage detected