class-transformer
class-transformer copied to clipboard
fix: excludeExtraneousValues doesn't work with arrays
let results: TypedModel[] = plainToClass(TypedModel, res, { excludeExtraneousValues: true });
Once res is array of items, the results array will contains item which is not exist in model schema. Is this correct behavior?
+1
+1
same issue with exposeDefaultValues
We are facing the same issue too