Merge pull request #10 from Kirusi/develop
Changed JSON schema validator's options to remove warning: "$ref: key…
This commit is contained in:
commit
dcc92cd42c
|
@ -16,8 +16,9 @@ const reserved = {
|
||||||
|
|
||||||
const schema = require("../../ext/spec_0_2.json");
|
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);
|
const validate = ajv.compile(schema);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue