Explorar o código

fix: anchoring

Sam Jaffe hai 1 ano
pai
achega
9d81292ef6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      include/jvalidate/schema.h

+ 1 - 1
include/jvalidate/schema.h

@@ -130,7 +130,7 @@ private:
     if (auto it = anchors_.find(ref.anchor()); it != anchors_.end()) {
       ref = it->second / ref.pointer();
     }
-    EXPECT_M(ref.anchor().back() != '#', "Unmatched anchor: " << ref.anchor());
+    EXPECT_M(ref.anchor().back() == '#', "Unmatched anchor: " << ref.anchor());
 
     if (auto it = alias_cache_.find(ref); it != alias_cache_.end()) {
       return it->second;