From c4d70e98b5983c602c12be487b36c73d63b7daad Mon Sep 17 00:00:00 2001 From: Laurens Bultynck Date: Tue, 31 Aug 2021 23:15:53 +0100 Subject: [PATCH] Fix error messages for strict values See: https://github.com/thephpleague/openapi-psr7-validator/issues/125 --- tests/LeagueSchemaValidatorTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/LeagueSchemaValidatorTest.php b/tests/LeagueSchemaValidatorTest.php index 4754cf1..81e21ae 100644 --- a/tests/LeagueSchemaValidatorTest.php +++ b/tests/LeagueSchemaValidatorTest.php @@ -149,22 +149,22 @@ public function invalidData(): array 'Minimum value' => [ 'strict_limit', 0, - 'Value must be greater than 1.', + 'Value must be greater or equal to 1.', ], 'Maximum value' => [ 'strict_limit', 50, - 'Value must be less than 25.', + 'Value must be less or equal to 25.', ], 'Exclusive limit minimum value' => [ 'limit', 0, - 'Value must be greater or equal to 1.', + 'Value must be greater than 1.', ], 'Exclusive limit maximum value' => [ 'limit', 50, - 'Value must be less or equal to 25.', + 'Value must be less than 25.', ], 'Min length' => [ 'length',