chore: improve webhook (#25998)

This commit is contained in:
非法操作
2025-09-21 12:16:31 +08:00
committed by GitHub
parent 59f56d8c94
commit 4ca14bfdad
5 changed files with 7 additions and 27 deletions

View File

@ -26,14 +26,6 @@ const nodeDefault: NodeDefault<WebhookTriggerNodeType> = {
return nodes.filter(type => type !== BlockEnum.Start)
},
checkValid(payload: WebhookTriggerNodeType, t: any) {
// Validate webhook configuration
if (!payload.webhook_url) {
return {
isValid: false,
errorMessage: t('workflow.nodes.triggerWebhook.validation.webhookUrlRequired'),
}
}
// Validate parameter types for params and body
const parametersWithTypes = [
...(payload.params || []),