79576574

Date: 2025-04-16 07:06:06
Score: 1
Natty:
Report link
const formSchema = z.object({
 numberField:  z.coerce.number().positive('numberField is required'),
})

`coerce` will change the string to a number. Empty will be handled as zero so use positive for number > 0

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Raju_ez