Explorar el Código

fix: properly set top-level valid

Sam Jaffe hace 3 meses
padre
commit
4a3bf05685
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
   }