validator: use url for undefined-references

Instead of url + path. The was leading to a
schema-already-loaded-bug before
This commit is contained in:
Patrick Boettcher 2017-01-27 10:07:43 +01:00
parent 781fd1cebb
commit 881be19ca7

View File

@ -116,7 +116,7 @@ public:
// of the same document, which has not been found
throw std::invalid_argument("sub-schema " + r.pointer().to_string() +
" in schema " + id.to_string() + " not found");
undefined_refs.insert(r);
undefined_refs.insert(r.url());
}
}
}