Skip to content

Add support for ajv/dist/2020 that targets https://json-schema.org/draft/2020-12/schema #791

@finom

Description

@finom

Is your feature request related to a problem? Please describe.
Currently the resolver supports draft-07 but draft-2020-12 (also used by default at Zod 4 toJSONSchema) requires to use another module imported from ajv/dist/2020

import Ajv from 'ajv/dist/2020';

Describe the solution you'd like
Not sure how it's going to work: it either can be another feature of existing AJV resolver with some conditions, or a different resolver.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions