Skip to content

JTD schemas do not support coerceTypes option #1724

@riker09

Description

@riker09

I'm using TypeScript v4.3.4 and I am unable to use the coerceTypes option when constructing the Ajv instance.

import Ajv from 'ajv/dist/jtd';

const ajv = new Ajv({ coerceTypes: true });

This is a screenshot of the error I get in VSCodium v1.57.1:

Bildschirmfoto von 2021-06-28 09-13-51

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions