Browse Source

fix: properly set top-level valid

Sam Jaffe 3 months ago
parent
commit
4a3bf05685
1 changed files with 1 additions and 1 deletions
  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;
   }