fix: compileAsync schema with multiple remote schemas and some recursive, fixes #801
parent
15c6d07fe5
commit
32651b5cfd
|
@ -351,6 +351,10 @@ function _compile(schemaObj, root) {
|
||||||
|
|
||||||
var v;
|
var v;
|
||||||
try { v = compileSchema.call(this, schemaObj.schema, root, schemaObj.localRefs); }
|
try { v = compileSchema.call(this, schemaObj.schema, root, schemaObj.localRefs); }
|
||||||
|
catch(e) {
|
||||||
|
delete schemaObj.validate;
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
finally {
|
finally {
|
||||||
schemaObj.compiling = false;
|
schemaObj.compiling = false;
|
||||||
if (schemaObj.meta) this._opts = currentOpts;
|
if (schemaObj.meta) this._opts = currentOpts;
|
||||||
|
|
|
@ -430,7 +430,7 @@ describe('compileAsync method', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
describe.skip('schema with multiple remote properties, the first is recursive schema (#801)', function() {
|
describe('schema with multiple remote properties, the first is recursive schema (#801)', function() {
|
||||||
it('should validate data', function() {
|
it('should validate data', function() {
|
||||||
var schema = {
|
var schema = {
|
||||||
"$id": "http://example.com/list.json",
|
"$id": "http://example.com/list.json",
|
||||||
|
|
Loading…
Reference in New Issue