refactor: unify trigger node architecture and clean up technical debt (#24886)

Co-authored-by: hjlarry <hjlarry@163.com>
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
lyzno1
2025-09-01 15:47:44 +08:00
committed by GitHub
parent 6d307cc9fc
commit 327b354cc2
21 changed files with 145 additions and 70 deletions

View File

@ -48,7 +48,7 @@ class WebhookData(BaseNodeData):
SYNC = "async" # only support
method: Method = Method.GET
content_type: ContentType = Field(alias="content-type", default=ContentType.JSON)
content_type: ContentType = Field(default=ContentType.JSON)
headers: Sequence[WebhookParameter] = Field(default_factory=list)
params: Sequence[WebhookParameter] = Field(default_factory=list) # query parameters
body: Sequence[WebhookBodyParameter] = Field(default_factory=list)

View File

@ -42,7 +42,7 @@ class TriggerWebhookNode(BaseNode):
"type": "webhook",
"config": {
"method": "get",
"content-type": "application/json",
"content_type": "application/json",
"headers": [],
"params": [],
"body": [],