poppinss / indicative

Indicative is a simple yet powerful data validator for Node.js and browsers. It makes it so simple to write async validations on nested set of data.
https://indicative.adonisjs.com/
MIT License
417 stars 52 forks source link

Range validation #204

Closed mcordoba closed 5 years ago

mcordoba commented 6 years ago

It would be nice to include in the docs that range validator does not include the edge numbers.

For example if I use range:1,5 the value 1 and 5 are not valid.

I had to check in the code to figure it out.

Thank you

thetutlage commented 5 years ago

Fixed in https://github.com/poppinss/indicative-rules/commit/0480c8f48d322b352c423e9c395098865bcc9cac