php-json-schema icon indicating copy to clipboard operation
php-json-schema copied to clipboard

Maximum/Minimum error messages seem to be reversed

Open ghost opened this issue 3 years ago • 1 comments

In Swaggest\JsonSchema\Schema::processNumeric the error messages regarding maximum/minimum and exclusive maximum/minimum seem to be reversed. At the maximum it says "Value less than ..." and at the exclusive maximum it says "Value less or equal than...". I think it needs to be the other way round. The same for minimum.

ghost avatar Apr 22 '22 07:04 ghost

Yes. I just found out about this today. The messages are wrongly reversed between the two.

kemal-xx avatar Nov 15 '22 15:11 kemal-xx