@@ -979,9 +979,9 @@ auto SchemaFrame::references() const noexcept -> const References & {
979979}
980980
981981auto SchemaFrame::reference (const SchemaReferenceType type,
982- const Pointer &pointer) const
982+ const WeakPointer &pointer) const
983983 -> std::optional<std::reference_wrapper<const ReferencesEntry>> {
984- const auto result{this ->references_ .find ({type, pointer})};
984+ const auto result{this ->references_ .find ({type, to_pointer ( pointer) })};
985985 if (result != this ->references_ .cend ()) {
986986 return result->second ;
987987 }
@@ -1015,16 +1015,16 @@ auto SchemaFrame::vocabularies(const Location &location,
10151015}
10161016
10171017auto SchemaFrame::uri (const Location &location,
1018- const Pointer &relative_schema_location) const
1018+ const WeakPointer &relative_schema_location) const
10191019 -> JSON::String {
1020- return to_uri (to_pointer ( this ->relative_instance_location (location))
1021- . concat ( relative_schema_location),
1020+ return to_uri (this ->relative_instance_location (location). concat (
1021+ relative_schema_location),
10221022 location.base )
10231023 .recompose ();
10241024}
10251025
10261026auto SchemaFrame::traverse (const Location &location,
1027- const Pointer &relative_schema_location) const
1027+ const WeakPointer &relative_schema_location) const
10281028 -> const Location & {
10291029 const auto new_uri{this ->uri (location, relative_schema_location)};
10301030 const auto static_match{
@@ -1082,11 +1082,11 @@ auto SchemaFrame::uri(const WeakPointer &pointer) const
10821082}
10831083
10841084auto SchemaFrame::dereference (const Location &location,
1085- const Pointer &relative_schema_location) const
1085+ const WeakPointer &relative_schema_location) const
10861086 -> std::pair<SchemaReferenceType,
10871087 std::optional<std::reference_wrapper<const Location>>> {
10881088 const auto effective_location{
1089- to_pointer (location.pointer ) .concat (relative_schema_location)};
1089+ to_pointer (location.pointer .concat (relative_schema_location) )};
10901090 const auto maybe_reference_entry{this ->references_ .find (
10911091 {SchemaReferenceType::Static, effective_location})};
10921092 if (maybe_reference_entry == this ->references_ .cend ()) {
0 commit comments