Initialize with a ModelValidator instance. The ModelValidator is used to verify that objects meet their class's column metadata (data type, nullability, etc.), and any custom validation.
Generate validation metadata (see bsy-validation) for the Entity.
Verify that each property of obj meets the requirements defined by Column and Relationship decoration, such as data type, maximum length, and nullability. If valid, then check any user-defined validation, such as email and phone number validation. (Reference the bsy-validation package, as the ObjectValidator class is used for validation.)
The object to validate against class Entity.
A class that has properties decorated with @Validate. This is the schema against which obj will be validated.
Generated using TypeDoc
This class validates an object against a class's validation metadata prior to updating by verifying that the primary key is present, and then running the object through a ModelValidator instance. Reference ModelValidator and the bsy-validation package.