jquense / yup

Dead simple Object schema validation
MIT License
22.93k stars 934 forks source link

Add number rule to mimic default browser 'step' validation #2126

Open Eternal-Rise opened 1 year ago

Eternal-Rise commented 1 year ago

I see that 'yup' is missing a rule for number input, which would be equivalent to the 'step' validation in the browser. It would be great to have this validation as part of 'yup'.

Or, maybe, I missing something?

https://codepen.io/Eternal_Rise/pen/oNmggKB image