chrishoermann / zod-prisma-types

Generator creates zod types for your prisma models with advanced validation
Other
579 stars 43 forks source link

isValidDecimalInput checks 0 as incorrect #99

Closed michiim closed 1 year ago

michiim commented 1 year ago

0 should be a valid decimal

problematic code: if (!v) return false;

chrishoermann commented 1 year ago

@michiim that's right. thanks for the hint.

chrishoermann commented 1 year ago

@michiim this should be fixed in latest release