swaggest / php-json-schema

High definition PHP structures with JSON-schema based validation
MIT License
451 stars 51 forks source link

Maximum/Minimum error messages seem to be reversed #141

Open ghost opened 2 years ago

ghost commented 2 years ago

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.

kemal-xx commented 2 years ago

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