Skip to content

Commit 4a7ed6e

Browse files
committed
fix: disable strictSchema option in Ajv
to accommodate schemas with unknown keywords
1 parent 4dfbf42 commit 4a7ed6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class Validator {
5555
}
5656

5757
function createValidator(subprotocol, json) {
58-
const ajv = new Ajv();
58+
const ajv = new Ajv({strictSchema: false});
5959
addFormats(ajv);
6060
ajv.addSchema(json);
6161
return new Validator(subprotocol, ajv);

0 commit comments

Comments
 (0)