main/app/API/Crud.php
public function validate($class, $data, $mode, array $options = [])
    {
        return $this->validator->validate($class, $data, $mode, true, $options);
    }
public function validate($class, $data, $mode, array $options = [])
    {
        return $this->validator->validate($class, $data, $mode, true, $options);
    }
public function validate ( $ class , $ data , $ mode , array $ options = [ ] ) { return $ this -> validator -> validate ( $ class , $ data , $ mode , true , $ options ) ; }
Validates `data` with the available validator for `class`.

@param string $class - the class of the entity used for validation
@param mixed  $data  - the serialized data to validate
@param string $mode  - the validation mode
Validates data with the available validator for class .