Skip to content

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

@dinfer

Description

@dinfer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions