|
|
@@ -85,15 +85,15 @@ public:
|
|
|
uri = (uri.is_relative() ? parent_uri.parent() : parent_uri.root()) / uri;
|
|
|
}
|
|
|
|
|
|
- detail::Reference rval(detail::RootReference(uri, ref.anchor()), ref.pointer());
|
|
|
+ detail::Reference rval(uri, ref.anchor(), ref.pointer());
|
|
|
|
|
|
// Will now need to go make an external fetch...
|
|
|
// TODO(samjaffe): Make that process internal?
|
|
|
return rval;
|
|
|
}
|
|
|
|
|
|
- void prime(Adapter auto const & json, detail::RootReference const & where,
|
|
|
- schema::Version version, Keywords const & keywords) {
|
|
|
+ void prime(Adapter auto const & json, URI const & where, schema::Version version,
|
|
|
+ Keywords const & keywords) {
|
|
|
canonical_to_absolute_.emplace(where, detail::Reference(where));
|
|
|
prime_impl(json, detail::Reference(where), version, keywords);
|
|
|
}
|
|
|
@@ -154,7 +154,6 @@ private:
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- EXPECT_M(root.anchor().empty(), "Cannot have $id with anchor and $anchor tags at same time");
|
|
|
root = detail::RootReference(root.uri(), detail::Anchor(schema["$anchor"].as_string()));
|
|
|
|
|
|
cache(root, where, json);
|