We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca2b8f5 commit e16d888Copy full SHA for e16d888
src/JsonSchema/Validator.php
@@ -68,8 +68,13 @@ public function coerce(&$value, $schema = null)
68
*/
69
public function validate(&$value, $schema = null, $checkMode = self::CHECK_MODE_NORMAL)
70
{
71
+ $originalCheckMode = $this->factory->getCheckMode();
72
$this->factory->setCheckMode($checkMode);
- return $this->_check($value, $schema);
73
+
74
+ $checkResult = $this->_check($value, $schema);
75
76
+ $this->factory->setCheckMode($originalCheckMode);
77
+ return $checkResult;
78
}
79
80
/**
0 commit comments