The class-transformer docs say:
Implicit type conversion
NOTE If you use class-validator together with class-transformer you propably DON'T want to enable this function.
Why not?
I did some tests and found no issues.
Actually it is the other way around: using class-transformer (with enableImplicitConversion=true
and reflect-metadata) in combination with class-validator seems to be a perfect fit and it is supported out-of-the-box by NestJS