protected function validateBooleanType($value, array $schema): ErrorResult
    {
        $result = new ErrorResult();
        if (is_bool($value) === false) {
            $result->addError($this->createError('type=boolean', 'type=' . gettype($value)));
            return $result;
        }
        return $result;
    }