Skip to content

Support for draft 2020-12 #124

@jat255

Description

@jat255

Looking through some other issues, it looks like schema version support is dependent on the AJV library. Poking through their docs, it looks like that library now supports 2020-12 (https://ajv.js.org/guide/schema-language.html#draft-2019-09-and-draft-2020-12), but it looks like it requires a different import:

const Ajv2020 = require("ajv/dist/2020")
const ajv = new Ajv2020()

Would it be possible to add this? Looking through the library, it looks like that would need to be changed somewhere around here: https://github.com/tomcollins/json-schema-static-docs/blob/master/lib/validator.js#L1-L5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions