瀏覽代碼

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;
   }