-
Notifications
You must be signed in to change notification settings - Fork 520
Open
Labels
flag: needs discussionIssues which needs discussion before implementation.Issues which needs discussion before implementation.type: featureIssues related to new features.Issues related to new features.
Description
Description
The default behaviour of the plainToClass method is to set all properties from the plain object, even those which are not specified in the class.In our case, we make some Class as a validator, so other unknown properties are dangerous
Proposed solution
like @exclude() working whole Class, maby @expose() can do the same thing, otherwise we need add @expose() before every properties in validator Class
IgnisDa, marefati110, Morb0, MansurAliKoroglu, pauloendoh and 3 more
Metadata
Metadata
Assignees
Labels
flag: needs discussionIssues which needs discussion before implementation.Issues which needs discussion before implementation.type: featureIssues related to new features.Issues related to new features.