/** * @param mixed $value * @param object $schema * @param string|null $path * * @return array */ public function validate($value, $schema, $path = null) { $this->validator->check($value, $schema, $path); return $this->validator->getErrors(); }