Exposed "getters only" don't get handled in plainToInstance #1807
Labels
status: needs triage
Issues which needs to be reproduced to be verified report.
type: fix
Issues describing a broken feature.
Description
It seems that using
plainToInstance
where you have a few getters (without setters) doesn't work.I have this recollection where I converted responses in Angular and this used to work.
But I tried up to class-transformer 0.4.0 and it always behaves the same.
This is somewhat related (or clones) #1257
Blitz with full code here => https://stackblitz.com/edit/ts-class-transformer-issue
Expected behavior
I would expect to have
{
errorCode: 123
}
Actual behavior
{
errorCode: 800
}
The text was updated successfully, but these errors were encountered: