diff --git a/lib/ajv.js b/lib/ajv.js index 82af28c..dde836f 100644 --- a/lib/ajv.js +++ b/lib/ajv.js @@ -69,6 +69,7 @@ function Ajv(opts) { this._loadingSchemas = {}; this._compilations = []; this.RULES = rules(); + this._getId = chooseGetId(opts); opts.loopRequired = opts.loopRequired || Infinity; if (opts.errorDataPath == 'property') opts._errorDataPathProperty = true; @@ -136,9 +137,10 @@ function addSchema(schema, key, _skipValidation, _meta) { for (var i=0; i