Files
ry.kazcloud.dev/node_modules/zod-to-json-schema/dist-test/esm/index.js
Ryan Kazokas d181f77fb2
All checks were successful
Build and Push / build (push) Successful in 55s
Updates dockerfile
2026-02-16 15:09:37 -05:00

13 lines
230 B
JavaScript

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);