MCPcopy Create free account
hub / github.com/ShipSecAI/studio / generateJsonSchema

Function generateJsonSchema

packages/component-sdk/src/json-schema.ts:55–59  ·  view source on GitHub ↗
(schema: z.ZodTypeAny)

Source from the content-addressed store, hash-verified

53 * @returns JSON Schema object
54 */
55export function generateJsonSchema(schema: z.ZodTypeAny): Record<string, unknown> {
56 const jsonSchema = zodToJsonSchema(schema);
57
58 return jsonSchema;
59}
60
61/**
62 * Convert Zod schema to JSON Schema format

Callers

nothing calls this directly

Calls 1

zodToJsonSchemaFunction · 0.85

Tested by

no test coverage detected