add meta schema from option meta, #90
parent
e1a38d2d90
commit
f068d73693
|
@ -63,6 +63,8 @@ function Ajv(opts) {
|
|||
if (opts.formats) addInitialFormats();
|
||||
if (opts.errorDataPath == 'property') opts._errorDataPathProperty = true;
|
||||
if (opts.v5) v5.enable(this);
|
||||
var meta = self._opts.meta;
|
||||
if (typeof meta == 'object') addMetaSchema(meta);
|
||||
opts.loopRequired = opts.loopRequired || Infinity;
|
||||
if (opts.beautify) opts.beautify = opts.beautify === true ? { indent_size: 2 } : opts.beautify;
|
||||
if (opts.async || opts.transpile) async.setup(opts);
|
||||
|
|
Loading…
Reference in New Issue