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

Crashes on AJV initialized with meta: false #30

Open
medikoo opened this issue Feb 5, 2019 · 1 comment
Open

Crashes on AJV initialized with meta: false #30

medikoo opened this issue Feb 5, 2019 · 1 comment

Comments

@medikoo
Copy link

medikoo commented Feb 5, 2019

Following will crash with not very descriptive error Error: can't resolve reference http://json-schema.org/draft-07/schema# from id #

const AJV = require('ajv');
const ajv = new AJV({ meta: false });
require('ajv-merge-patch')(ajv);

If it works as intended it'll be good to document that AJV cannot be initialized with meta: false, if we want to take advantage of this plugin

@epoberezkin
Copy link
Member

Can be added to docs indeed.

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

No branches or pull requests

2 participants