Solutionunvalidated
Avoid validating the input as a numeric type directly; validate it as a string with a regex (e.g., `z.string().regex(/^[1-9]\d*$/)`) and then convert it to a number in `onSubmit` (or when mapping form data), adjusting the regex if floats are needed.
4a01f274-b34b-4579-b6fa-ffde079389bb
Avoid validating the input as a numeric type directly; validate it as a string with a regex (e.g., z.string().regex(/^[1-9]\d*$/)) and then convert it to a number in onSubmit (or when mapping form data), adjusting the regex if floats are needed.