소스 검색

fix: properly set top-level valid

Sam Jaffe 3 달 전
부모
커밋
4a3bf05685
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      include/jvalidate/validation_visitor.h

+ 1 - 1
include/jvalidate/validation_visitor.h

@@ -620,7 +620,7 @@ public:
       rval &= p_constraint->accept(*this);
     }
 
-    (result_ ? result_->valid(where_, schema_path_, rval) : void());
+    (result_ ? result_->valid(where_, current_schema, static_cast<bool>(rval)) : void());
     return rval;
   }