ajv-validator / ajv-merge-patch

$merge and $patch keywords for Ajv JSON-Schema validator to extend schemas
https://ajv.js.org
MIT License
46 stars 17 forks source link

handle update to the MissingRegError constructor #52

Open chevett opened 2 years ago

chevett commented 2 years ago

Hello, I am trying to run the latest code and I am seeing

1) async schema loading
       $merge
         should load missing schemas:
     TypeError: resolver.resolve is not a function
      at resolveUrl (node_modules/ajv/dist/compile/resolve.js:90:21)
      at new MissingRefError (node_modules/ajv/dist/compile/ref_error.js:7:52)
      ...

  2) async schema loading
       $patch
         should load missing schemas:
     TypeError: resolver.resolve is not a function
      at resolveUrl (node_modules/ajv/dist/compile/resolve.js:90:21)
      at new MissingRefError (node_modules/ajv/dist/compile/ref_error.js:7:52)
      at getSchema (keywords/add_keyword.js:2:1397)
      ...

Looks like https://github.com/ajv-validator/ajv/pull/1862 changed the signature of MissingRefError.