Initialize with a ModelValidator instance. The ModelValidator handles the majority of the validation, while this class is concerned with verifying the presence of non-nullable columns.
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
Specialized validator that's used to validate objects against a class's validation schema and column metadata prior to creation. For example, when inserting a record non-nullable fields must be defined and non-null, and generated fields, like auto-incrementing primary keys, must not be defined. This differs from mutation (updating and deleting).