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

Function requestJsonSchema

packages/server/test/swagger.e2e.test.ts:92–101  ·  view source on GitHub ↗
(
  doc: Record<string, unknown>,
  path: string,
  method: string,
)

Source from the content-addressed store, hash-verified

90}
91
92function requestJsonSchema(
93 doc: Record<string, unknown>,
94 path: string,
95 method: string,
96): Record<string, unknown> {
97 const requestBody = asRecord(operation(doc, path, method)['requestBody']);
98 const content = asRecord(requestBody['content']);
99 const json = asRecord(content['application/json']);
100 return asRecord(json['schema']);
101}
102
103function responseJsonSchema(
104 doc: Record<string, unknown>,

Callers 1

Calls 2

operationFunction · 0.85
asRecordFunction · 0.70

Tested by

no test coverage detected