zod-to-json-schema icon indicating copy to clipboard operation
zod-to-json-schema copied to clipboard

Is this package compatible with @types/json-schema?

Open dinfer opened this issue 5 months ago • 1 comments

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
image

dinfer avatar Sep 18 '24 09:09 dinfer