当前,我正在getData
函数中验证连接器的配置,但这不是非常用户友好。
RequestParamsValidator.prototype.validate = function validate(request) {
if (!request.configParams || !request.configParams.account_id) {
ErrorUtils.throwUserError('Account id is required. Please check connector config and try again.');
}
};
您是否知道是否有任何检查方法(可能未记录),例如字段的值为空,是否阻止用户创建连接器?
我检查了此参考,但没有任何有关验证的信息: https://developers.google.com/apps-script/reference/data-studio/text-input