zod-to-json-schema
zod-to-json-schema copied to clipboard
Is this package compatible with @types/json-schema?
Error in typescript lint. the definitions
field is imcompatible.
Is there any plan to support @types/json-schema in type ?
import type { JSONSchema7 } from "json-schema"
import { zodToJsonSchema } from "zod-to-json-schema"
const schema: JSONSchema7 = { ... }
const validator = zodToJsonSchema(schema) // error