ajv-validator / ajv-validator/ajv-merge-patch

Crashes on AJV initialized with `meta: false`

Open
#30 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
47
Forks
19
PR merge metrics
No merged PRs in 30d

Description

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

```javascript
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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.