public function validate($data)
    {
        $this->validator->reset();
        $this->validator->check($data, $this->schema());

        if (!$this->validator->isValid()) {
            throw new InvalidConfigurationException(
                $this->validator->getErrors()
            );
        }
    }