You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, using validation against this schema on a formSubmit coerces undefined into an empty string, or inputs with no data become empty strings and this validation succeeds.
Ideally email isn't: ''
Would be handy to have some sort of way of specify minLength
How to reproduce
validate using schema in a form onsubmit method
Expected behavior
Some way of specifying validation requirements
Prisma information
Prisma v4
Environment & setup
macOs
Prisma Version
4
The text was updated successfully, but these errors were encountered:
Bug description
Given a user model like
produces the generated class
const UserCreateOneSchema = z.object({ email: z.string() });
However, using validation against this schema on a formSubmit coerces undefined into an empty string, or inputs with no data become empty strings and this validation succeeds.
Ideally email isn't:
''
Would be handy to have some sort of way of specify minLength
How to reproduce
Expected behavior
Prisma information
Prisma v4
Environment & setup
macOs
Prisma Version
4
The text was updated successfully, but these errors were encountered: