MCPcopy
hub / github.com/antvis/mcp-server-chart / zodToJsonSchema

Function zodToJsonSchema

src/utils/schema.ts:4–9  ·  view source on GitHub ↗
(schema: Record<string, z.ZodType<any>>)

Source from the content-addressed store, hash-verified

2
3// biome-ignore lint/suspicious/noExplicitAny: <explanation>
4export const zodToJsonSchema = (schema: Record<string, z.ZodType<any>>) => {
5 return z.object(schema).toJSONSchema({
6 io: "input",
7 target: "draft-07",
8 });
9};

Callers 15

network-graph.tsFile · 0.90
scatter.tsFile · 0.90
sankey.tsFile · 0.90
column.tsFile · 0.90
violin.tsFile · 0.90
histogram.tsFile · 0.90
line.tsFile · 0.90
radar.tsFile · 0.90
waterfall.tsFile · 0.90
treemap.tsFile · 0.90
path-map.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected