This commit is contained in:
12
node_modules/zod-to-json-schema/dist-test/esm/index.js
generated
vendored
Normal file
12
node_modules/zod-to-json-schema/dist-test/esm/index.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import z from "zod"
|
||||
import { zodToJsonSchema } from "zod-to-json-schema"
|
||||
|
||||
const result = zodToJsonSchema(z.string());
|
||||
|
||||
z
|
||||
.object({
|
||||
type: z.literal("string"),
|
||||
$schema: z.string().url(),
|
||||
})
|
||||
.strict()
|
||||
.parse(result);
|
||||
Reference in New Issue
Block a user