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

Function acceptSchema

packages/zod/src/v4/mini/tests/standard-schema.test.ts:5–7  ·  view source on GitHub ↗
(schema: StandardSchemaWithJSON)

Source from the content-addressed store, hash-verified

3import * as z from "../index.js";
4
5function acceptSchema(schema: StandardSchemaWithJSON) {
6 return schema;
7}
8
9test("Zod Mini schemas are NOT assignable to StandardJSONSchema", () => {
10 const schema = z.string();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected