        $validator = static::makeValidator($config, [
            'domain' => 'required',
            'key'    => 'required'
        ], $create);

        if ($validator->fails()) {
            $messages = $validator->messages()->getMessages();
            throw new BadRequestException('Validation failed.', null, null, $messages);
        }

        return true;