-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No type validation when creating #418
Comments
I'll need a minimal reproduction repo to test it out :/ |
https://github.com/rivatove/prisma-json-types-generator-418/blob/master/prisma/seed.ts Type-checking doesn't work with:
I don't think it's the only reason as removing that flag doesn't seem to fix that in my production app, but it's a good start and we can iterate further when you look into that. |
I fixed the https://github.com/arthurfiorette/prisma-json-types-generator/releases/tag/v3.2.0 |
It seems Prisma client extensions cause the issue. See updated reproduction: |
Thanks for the reproduction steps, sadly I do not have time to fix this right now but i'd love to review a PR fixing this. |
Understandable. I'm putting a $120 bounty for anyone that fixes this and has his PR merged and released. Valid until such functionality is not supported natively by Prisma. 2025-02-08 EDIT: I'm cancelling the bounty because I stopped using Prisma extensions. |
I'll work on this, let's me see if I can find a clever solution for this! |
Prerequisites
Versions
3.1.1
A minimal reproducible example
I'll add a minimal reproduction if it proves necessary.
Description
Hi, I'm experiencing no type checking when using Prisma's create method. This is really baffling as the generated type seem alright:
In the method call however, I can assign any value I want to the meta field with no error:
Doing it this way will raise an error though:
Do you know what could it be?
Steps to Reproduce
I'll add a minimal reproduction if it proves necessary.
Expected Behavior
No response
The text was updated successfully, but these errors were encountered: