Explorar el Código

fix: anchoring

Sam Jaffe hace 1 año
padre
commit
9d81292ef6
Se han modificado 1 ficheros con 1 adiciones y 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;