Skip to content

Commit cd113f9

Browse files
committed
Reset errors prior to validation
1 parent 3dba977 commit cd113f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/JsonSchema/Validator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ public function validate(&$value, $schema = null, $checkMode = null)
4141
$this->factory->setConfig($checkMode);
4242
}
4343

44+
$this->reset();
45+
4446
$validator = $this->factory->createInstanceFor('schema');
4547
$validator->check($value, $schema);
4648

0 commit comments

Comments
 (0)