diff --git a/src/JsonSchema/Validator.php b/src/JsonSchema/Validator.php index 9f44e512..d479103c 100644 --- a/src/JsonSchema/Validator.php +++ b/src/JsonSchema/Validator.php @@ -37,6 +37,10 @@ class Validator extends BaseConstraint */ public function validate(&$value, $schema = null, $checkMode = null) { + // reset errors prior to validation + $this->reset(); + + // set checkMode $initialCheckMode = $this->factory->getConfig(); if ($checkMode !== null) { $this->factory->setConfig($checkMode);