Closed Morriz closed 2 months ago
I created a feature request upstream: https://github.com/typestack/class-validator/issues/1726
And published a fork in the mean time not using IsDefined
: https://www.npmjs.com/package/prisma-class-validator-generator-partial
Hey @Morriz I apologize for not being as active here, I'm busy with job search and interviews that I don't get enough time to work on the many generators I have published so far. I hope you can understand that.
Also, you should have sent a PR instead of a whole fork and release lol.
Got it. No PR as my fix is temporary and upstream should fix the problem.
Closing for now, feel free to open in case something changes
Bug description
The output is now not usable for partial updates, as the validator requires props with
IsDefined()
, andskipMissingProperties
does not work on them: https://github.com/typestack/class-validator#skipping-missing-propertiesHow to reproduce
Expected behavior
No response
Prisma information
Environment & setup
Prisma Version