Hey guys, I am trying to move this zod schema with arktype:
const userZodSchema = z.object({ name: z .string({ required_error: "name is required", invalid_type_error: "name must of type string", }) .trim() .min(3, "name must be at least 3 characters") .max(255, "name must be at most 255 characters"),});
const userZodSchema = z.object({ name: z .string({ required_error: "name is required", invalid_type_error: "name must of type string", }) .trim() .min(3, "name must be at least 3 characters") .max(255, "name must be at most 255 characters"),});
so far I have come up with this, but how would I set the error message ?: