Vigyata.AI
Is this your channel?
GithubGithub01

49 Add Decimal to list of Numeric rules

This change adds Decimal to the list of numeric validation rules. The nice part is you can now pair decimal with min/max/size and have those constraints apply on the numeric value like you’d expect.

Buy on Github

You'll be taken to Github to complete your purchase.

Pros

  • +Improves consistency of numeric validation when using decimal
  • +Allows min/max/size to work alongside decimal in a predictable way

Cons

  • -It’s a small change, so you may not notice it unless you validate decimals often

Featured in this video