Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: these parameters are deprecated, see docs for addKeyword #1665

Closed
a-tonchev opened this issue Jul 1, 2021 · 2 comments
Closed

Warning: these parameters are deprecated, see docs for addKeyword #1665

a-tonchev opened this issue Jul 1, 2021 · 2 comments
Labels

Comments

@a-tonchev
Copy link

I get this message when I initialize ajv, my code looks like this:

import Ajv from 'ajv-draft-04';
import AjvBson from 'ajv-bsontype';
import AjvErrors from 'ajv-errors';

const ajv = new Ajv({ allErrors: true, strictTypes: false });
AjvBson(ajv);
AjvErrors(ajv);

I am using

ajv 8.6.0
ajv-bsontype 1.0.7
ajv-draft-04 1.0.0
ajv-errors 3.0.0

@epoberezkin
Copy link
Member

this is an issue with ajv-bsontype that uses deprecated API of ajv.addKeyword method.

@epoberezkin
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants