David Ferencz
David Ferencz
Duplicate of https://github.com/typestack/class-transformer/issues/1324
Hello @rostislav-kondratenko-lmnd, You can use the `exposeDefaultValues` option when calling `plainToInstance`. With this option transformation will preserve the default value, when not set in plain.
Thank you @clintonb! Closing as answered. If you have any questions left feel free to comment on this issue.
Hello @arthabus, The [Changelog](https://github.com/typestack/class-transformer/blob/develop/CHANGELOG.md) is the place to look for the changes between releases. As I see it mentions the changes correctly. I close this issue as it contains no...
Duplicate of https://github.com/typestack/class-transformer/issues/121
Hello, @chacha95, you can use the `@Transform` solution mentioned above or use the `exposeDefaultValues` option on your `plainToInstance` call and add default values to your properties as usual in classes.
Class-transformer does not generate any type definition file so I do think this question has nothing do to with this library. Closing as invalid.
The issue does not contain a simple reproduction case. Closing as invalid.
Closing as answered. If you have any questions left feel free to comment on this issue. Thank you @StenCalDabran for the answer.
Duplicate of https://github.com/typestack/class-transformer/issues/1019