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.
Method | Args | Description |
---|---|---|
batchValidate() | Array of Object | return BatchValidatorResultInfo |
batchValidatethrow() | Array of Object | throw BshBatchValidationError in case of invalid data |
validator.batchValidate(object1, object2, object3);
validator.batchValidateThrow(object1, object2, object3);