MichalLytek / class-transformer-validator

A simple plugin for class-transformer and class-validator which combines them in a nice and programmer-friendly API.
MIT License
200 stars 19 forks source link

could i remove unknow properties #9

Closed yoohan-dex closed 6 years ago

yoohan-dex commented 6 years ago

like yup noUnknown. not only validate the object but also remove properties I didn't define.

MichalLytek commented 6 years ago

https://github.com/typestack/class-validator#whitelisting

yoohan-dex commented 6 years ago

@19majkel94 sorry... I meant that after validated and transformed the object, the function will return a new object that without properties I didn't define in type.

MichalLytek commented 6 years ago

This lib is only a wrapper on class-validator, so please go to it's repo and create a proposal for this behavior πŸ˜‰

yoohan-dex commented 6 years ago

Ok thank you πŸ˜„

From yoohoo

On 26 Feb 2018, 03:57 +0800, MichaΕ‚ Lytek notifications@github.com, wrote:

This lib is only a wrapper on class-validator, so please go to it's repo and create a proposal for this behavior πŸ˜‰

β€” You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/19majkel94/class-transformer-validator/issues/9#issuecomment-368339272, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHNwuCc1-GCkZgi_uQgV7bXWUF-ktLIaks5tYbsMgaJpZM4SSVVN.