Alex - Hi there, I am trying to validate a numb...
Hi there, I am trying to validate a number using zod. The number is first received as a string and could possibly be anything because it comes from a user input.
`
This is my current schema, where maxQuantity is the said string. Now when I pass "d" as maxQuantity, I receive the error "Must be a positive number". How do I give an error that this is not even a number?
`
This is my current schema, where maxQuantity is the said string. Now when I pass "d" as maxQuantity, I receive the error "Must be a positive number". How do I give an error that this is not even a number?