src/Schema.php
public function isValid(array &$data, Validation &$validation = null) {
        return $this->isValidInternal($data, $this->schema, $validation, '');
    }
public function isValid(array &$data, Validation &$validation = null) {
        return $this->isValidInternal($data, $this->schema, $validation, '');
    }
Validate data against the schema and return the result.

@param array &$data The data to validate.
@param Validation &$validation This argument will be filled with the validation result.
@return bool Returns true if the data is valid. False otherwise.