From 881be19ca77fa5c06327c97ece07c64235f27284 Mon Sep 17 00:00:00 2001 From: Patrick Boettcher Date: Fri, 27 Jan 2017 10:07:43 +0100 Subject: [PATCH] validator: use url for undefined-references Instead of url + path. The was leading to a schema-already-loaded-bug before --- src/json-validator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/json-validator.cpp b/src/json-validator.cpp index 320576f..4befd08 100644 --- a/src/json-validator.cpp +++ b/src/json-validator.cpp @@ -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()); } } }