Class-validator: Detect properties that shouldn't exist on the object

Created on 26 Oct 2016  路  3Comments  路  Source: typestack/class-validator

There could be an option to emit a validation error if the object contains a property it shouldn't (e.g. the property isn't declared and decorated in the class).

feature

Most helpful comment

decide where it should be and create more detailed proposal

All 3 comments

Maybe it should be a part of your https://github.com/pleerock/class-transformer library instead of this one, I'm not sure.

decide where it should be and create more detailed proposal

This is now possible with the whitelist option.

Was this page helpful?
0 / 5 - 0 ratings