Skip to content

Commit 5d65058

Browse files
committed
Fixed error handling in README.md
1 parent 3650f34 commit 5d65058

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ $valid = $evaluator->evaluate(
7373

7474
foreach ($results as $result) {
7575
/** @var $result \Ropi\JsonSchemaEvaluator\EvaluationContext\RuntimeEvaluationResult */
76-
if ($result->error) {
76+
if ($result->error && !$result->suppressAnnotation) {
7777
echo "Error keyword location: '{$result->keywordLocation}'\n";
7878
echo "Error instance location: '{$result->instanceLocation}'\n";
7979
echo "Error message: {$result->error}\n";

0 commit comments

Comments
 (0)