question: seems like functions and constructors are still called when doing plain-to-class transformation

Author: fr1skCreated Jan 30, 2023Updated Nov 25, 2025
Labelstype: question

I am experiencing exactly the same issue as described here https://github.com/typestack/class-transformer/issues/494 ie. new random objectId gets created if I am not using the fix mentioned on the fix above.

https://github.com/typestack/class-transformer/issues/494#issuecomment-783085153 here it's written that this shouldn't be the case anymore but I am still experiencing it on the latest version of the class-transformer.

class-transformer version is v0.5.1

Source: typestack/class-transformer