Explore our exciting service BSH.G Tool
ts-validation
Batch Validations

Batch Validation: validate multi objects

to validate multiple objects, the library provides batchValidate() and batchValidatethrow() methods of Validator, this method accept list of objects, of the same type, to be validated.

MethodArgsDescription
batchValidate()Array of Objectreturn BatchValidatorResultInfo
batchValidatethrow()Array of Objectthrow BshBatchValidationError in case of invalid data
validator.batchValidate(object1, object2, object3);
validator.batchValidateThrow(object1, object2, object3);