MCPcopy
hub / github.com/colinhacks/zod / toJSONSchema

Method toJSONSchema

packages/zod/src/v4/classic/schemas.ts:96–96  ·  view source on GitHub ↗

Converts this schema to a JSON Schema representation.

(params?: core.ToJSONSchemaParams)

Source from the content-addressed store, hash-verified

94 "~standard": ZodStandardSchemaWithJSON<this>;
95 /** Converts this schema to a JSON Schema representation. */
96 toJSONSchema(params?: core.ToJSONSchemaParams): core.ZodStandardJSONSchemaPayload<this>;
97
98 // base methods
99 check(...checks: (core.CheckFn<core.output<this>> | core.$ZodCheck<core.output<this>>)[]): this;

Callers 10

record.test.tsFile · 0.80
expectMethodMatchFunction · 0.80
apply.test.tsFile · 0.80
registries.test.tsFile · 0.80
processFunction · 0.80

Calls

no outgoing calls

Tested by 1

expectMethodMatchFunction · 0.64