Skip to content

Commit 590aa38

Browse files
fix: update validation error keyword for empty data object against schema
1 parent 55bfbdb commit 590aa38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Unit/Utils/SchemaValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ function getValidData(): array
233233
$errors = $this->validator->validateAgainstJsonSchema($data, $schema);
234234

235235
expect($errors)->not->toBeEmpty()
236-
->and($errors[0]['keyword'])->toBe('type');
236+
->and($errors[0]['keyword'])->toBe('required');
237237
});
238238

239239
test('handles empty schema (allows anything)', function () {

0 commit comments

Comments
 (0)