diff --git a/bin/validate-json b/bin/validate-json index 5de011ce..94c4a341 100755 --- a/bin/validate-json +++ b/bin/validate-json @@ -217,7 +217,7 @@ if (isset($arOptions['--dump-schema'])) { try { $validator = new JsonSchema\Validator(); - $validator->check($data, $schema); + $validator->validate($data, $schema); if ($validator->isValid()) { if(isset($arOptions['--verbose'])) { diff --git a/src/JsonSchema/Validator.php b/src/JsonSchema/Validator.php index eb1c18d2..01ef0701 100644 --- a/src/JsonSchema/Validator.php +++ b/src/JsonSchema/Validator.php @@ -74,6 +74,8 @@ public function validate(&$value, $schema = null, $checkMode = null) /** * Alias to validate(), to maintain backwards-compatibility with the previous API + * + * @deprecated */ public function check($value, $schema) { @@ -82,6 +84,8 @@ public function check($value, $schema) /** * Alias to validate(), to maintain backwards-compatibility with the previous API + * + * @deprecated */ public function coerce(&$value, $schema) {