Merge branch 'develop' of https://github.com/cloudevents/sdk-javascript into develop

This commit is contained in:
Fabio José 2019-05-24 09:17:37 -03:00
commit 124d0c81b1
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);