Merge branch 'master' into beta

master
Evgeny Poberezkin 2017-12-02 10:45:34 +00:00
commit 896aa8d08e
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ function compile(schema, _meta) {
function addSchema(schema, key, _skipValidation, _meta) {
if (Array.isArray(schema)){
for (var i=0; i<schema.length; i++) this.addSchema(schema[i], undefined, _skipValidation, _meta);
return;
return this;
}
var id = this._getId(schema);
if (id !== undefined && typeof id != 'string')