Merge pull request #10 from Kirusi/develop

Changed JSON schema validator's options to remove warning: "$ref: key…
This commit is contained in:
Fabio José 2019-04-22 18:29:13 -03:00 committed by GitHub
commit dcc92cd42c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -16,8 +16,9 @@ const reserved = {
const schema = require("../../ext/spec_0_2.json");
// Default options
const ajv = new Ajv();
const ajv = new Ajv({
extendRefs: true // validate all keywords in the schemas with $ref (the default behaviour in versions before 5.0.0)
});
const validate = ajv.compile(schema);