소스 검색

fix: anchoring

Sam Jaffe 1 년 전
부모
커밋
9d81292ef6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;