koumoul-dev / vuetify-jsonschema-form

Create beautiful and low-effort forms that output valid data. Published on npm as @koumoul/vjsf.
https://koumoul-dev.github.io/vuetify-jsonschema-form/latest/
MIT License
539 stars 154 forks source link

Numbers minimum/maximum validation error message is inaccurate #196

Closed shirulaf closed 3 years ago

shirulaf commented 3 years ago

Hi,

When using the minimum/maximum attributes on numbers JSON-SCHEMA the definition is:

For example: minimum 3 --> value >= 3 maximum 3 --> value <= 3

Whereas in the library, the validation error message is: minimum 3 --> value must be more than 3, instead of more or equal to 3 maximum 3 --> value must be less than 3, instead of less or equal to 3

The error itself appears on the right values, meaning not when the value is 3, only the error message is wrong. Screen Shot 2021-02-07 at 11 16 46