adonisjs / validator

Schema based validator for AdonisJS
MIT License
116 stars 39 forks source link

Create min and max validators for number type #178

Closed KevinCalmant closed 1 year ago

KevinCalmant commented 1 year ago

Proposed changes

Implementation of the idea behind this issue : https://github.com/adonisjs/validator/issues/169

Types of changes

Implementing mix and max validators for numbers.

Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...