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

Function openApiDocumentJsonSchema

packages/server/src/middleware/schema.ts:39–44  ·  view source on GitHub ↗
(
  schema: z.ZodTypeAny,
  io: 'input' | 'output' = 'input',
)

Source from the content-addressed store, hash-verified

37 * OpenAPI 3 semantics.
38 */
39export function openApiDocumentJsonSchema(
40 schema: z.ZodTypeAny,
41 io: 'input' | 'output' = 'input',
42): Record<string, unknown> {
43 return jsonSchemaForTarget(schema, io, 'openapi-3.0');
44}
45
46function jsonSchemaForTarget(
47 schema: z.ZodTypeAny,

Callers 5

transforms.tsFile · 0.90
patchSessionActionsFunction · 0.90

Calls 1

jsonSchemaForTargetFunction · 0.85

Tested by

no test coverage detected