chrishoermann / zod-prisma-types

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

Support for Special Characters in Custom Error Messages #186

Closed weleo closed 8 months ago

weleo commented 10 months ago

Please add support for special characters like Ü, Ö, and Ä in custom error messages. For example, in the given code snippet:

email  String?  @unique  /// @zod.string.email({ message: "Ungültige E-Mail-Adresse" })

Currently, when these characters are included, the generated output gets commented out, as shown below:

/**
 * .email({ message: "Ungültige E-Mail-Adresse" })
 */
email: z.string().nullable(),
chrishoermann commented 8 months ago

As an Austrian how could I miss this 😅 I think I write too little Arnie quouts as error messages 🤔 Äktschn! should be working in 2.7.11