Initialize the validator.
Generate validation metadata (see bsy-validation) for the Entity. The returned metadata is only for the primary key column(s).
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 is used to validate an object against a class's validation metadata prior to deletion. When deleting, the primary key is required to be present and valid, but all other validation is ignored. Reference ModelValidator and the bsy-validation package.