فهرست منبع

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