diff --git a/src/Keywords/PropertiesKeyword.php b/src/Keywords/PropertiesKeyword.php index 5af6557..36eea74 100644 --- a/src/Keywords/PropertiesKeyword.php +++ b/src/Keywords/PropertiesKeyword.php @@ -93,6 +93,7 @@ public function validate(ValidationContext $context, Schema $schema): ?Validatio } } + $context->addCheckedProperties($checked); $context->addEvaluatedProperties($evaluated); if (!$errors->isEmpty()) { @@ -102,8 +103,6 @@ public function validate(ValidationContext $context, Schema $schema): ?Validatio } unset($errors); - $context->addCheckedProperties($checked); - return null; } -} \ No newline at end of file +}