Used to register a function that will be called when an attribute is being validated.
Example
classUserextendsModel { @Attribute(DataTypes.STRING) @ValidateAttribute({ myCustomValidator: () => { // this function will run when this attribute is validated. }, }) declarename: string; }
Used to register a function that will be called when an attribute is being validated.
Example
See also ModelValidator.