Open manterfield opened 1 year ago
Yeah that definitely makes sense. If you'd like you can submit a PR where you fix this including renaming the current number validator. As it is a breaking change I will then consider it for the next major release.
Perfect, will do! Might be this evening/tomorrow before I get time.
Hi,
I just had a look at the number validator, and it's actually only valid for integers.
It doesn't currently allow a leading dash (for negative numbers) or a decimal point.
I could make this change as a PR fairly easy since it's pretty straightforward, but it would be a breaking change. Not sure how to proceed as an additional validator really should have the name 'number' and the current implementation should be 'integer'.