public function validate($row, $sparse = false) {
        $schema = $this->getSchema();
        $valid = $schema->validate($row, ['sparse' => $sparse]);

        return $valid;
    }
public function validate($row, $sparse = false) {
        $schema = $this->getSchema();
        $valid = $schema->validate($row, ['sparse' => $sparse]);

        return $valid;
    }
public function validate ( $ row , $ sparse = false ) { $ schema = $ this -> getSchema ( ) ; $ valid = $ schema -> validate ( $ row , [ 'sparse' => $ sparse ] ) ; return $ valid ; }
Validate a row of data.

@param array|\ArrayAccess $row The row to validate.
@param bool $sparse Whether or not the validation should be sparse (during update).
@return array Returns valid data.
@throws ValidationException Throws an exception if the row doesn't validate.
@throws \Garden\Schema\RefNotFoundException Throws an exception if you have an invalid schema reference.
Validate a row of data .