Should custom validators work for Prisma composite types? #226
timfenton-dermi
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey great work on this by the way!
Just wanted to see if this is working as expected or not:
Context:
OrganizationContact is a composite type, not a model.
phoneNumber has a custom validator on it that is importing a custom function and using it to do some validation.
Expectation:
npx prisma generate would result in the following for phone number:
Reality:
npx prisma generate results in the following for phone number
is this expected behavior because it is a Prisma composite type, or is this a bug?
Beta Was this translation helpful? Give feedback.
All reactions