Skip to content

Commit 0efba06

Browse files
committed
fix: drop duplicate workflow_run_id from HITL event data schemas
The three HITL event schemas (StreamEventHumanInputRequired, StreamEventHumanInputFormFilled, StreamEventHumanInputFormTimeout) declared `workflow_run_id` inside `data.properties`, but `HumanInputRequiredResponse` in `api/core/app/entities/task_entities.py` defines `workflow_run_id` only as a top-level field on the response (alongside `event` and `task_id`); its inner `Data` class doesn't carry one. The OpenAPI spec already provides top-level `workflow_run_id` via the `$ref: StreamEventBase` in the `allOf` composition, so the inline duplicate was a phantom field that doesn't exist in the actual payload. Remove the inline `workflow_run_id` from `data.properties` in all three HITL event schemas across all six spec files. This relies on `StreamEventBase` to provide `workflow_run_id` at the top level via composition, matching how every other event schema in this spec handles it (e.g., `StreamEventWorkflowStarted`). Reported by Copilot on PR #756.
1 parent 469e410 commit 0efba06

6 files changed

Lines changed: 0 additions & 90 deletions

File tree

en/api-reference/openapi_chatflow.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5895,11 +5895,6 @@
58955895
"data": {
58965896
"type": "object",
58975897
"properties": {
5898-
"workflow_run_id": {
5899-
"type": "string",
5900-
"format": "uuid",
5901-
"description": "Workflow run identifier."
5902-
},
59035898
"form_id": {
59045899
"type": "string",
59055900
"description": "Identifier for the human input form instance."
@@ -6087,11 +6082,6 @@
60876082
"data": {
60886083
"type": "object",
60896084
"properties": {
6090-
"workflow_run_id": {
6091-
"type": "string",
6092-
"format": "uuid",
6093-
"description": "Workflow run identifier."
6094-
},
60956085
"node_id": {
60966086
"type": "string",
60976087
"description": "ID of the Human Input node whose form was filled."
@@ -6132,11 +6122,6 @@
61326122
"data": {
61336123
"type": "object",
61346124
"properties": {
6135-
"workflow_run_id": {
6136-
"type": "string",
6137-
"format": "uuid",
6138-
"description": "Workflow run identifier."
6139-
},
61406125
"node_id": {
61416126
"type": "string",
61426127
"description": "ID of the Human Input node whose form expired."

en/api-reference/openapi_workflow.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4127,11 +4127,6 @@
41274127
"data": {
41284128
"type": "object",
41294129
"properties": {
4130-
"workflow_run_id": {
4131-
"type": "string",
4132-
"format": "uuid",
4133-
"description": "Workflow run identifier."
4134-
},
41354130
"form_id": {
41364131
"type": "string",
41374132
"description": "Identifier for the human input form instance."
@@ -4252,11 +4247,6 @@
42524247
"data": {
42534248
"type": "object",
42544249
"properties": {
4255-
"workflow_run_id": {
4256-
"type": "string",
4257-
"format": "uuid",
4258-
"description": "Workflow run identifier."
4259-
},
42604250
"node_id": {
42614251
"type": "string",
42624252
"description": "ID of the Human Input node whose form was filled."
@@ -4297,11 +4287,6 @@
42974287
"data": {
42984288
"type": "object",
42994289
"properties": {
4300-
"workflow_run_id": {
4301-
"type": "string",
4302-
"format": "uuid",
4303-
"description": "Workflow run identifier."
4304-
},
43054290
"node_id": {
43064291
"type": "string",
43074292
"description": "ID of the Human Input node whose form expired."

ja/api-reference/openapi_chatflow.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5895,11 +5895,6 @@
58955895
"data": {
58965896
"type": "object",
58975897
"properties": {
5898-
"workflow_run_id": {
5899-
"type": "string",
5900-
"format": "uuid",
5901-
"description": "ワークフロー実行の識別子。"
5902-
},
59035898
"form_id": {
59045899
"type": "string",
59055900
"description": "人間の入力フォームインスタンスの識別子。"
@@ -6087,11 +6082,6 @@
60876082
"data": {
60886083
"type": "object",
60896084
"properties": {
6090-
"workflow_run_id": {
6091-
"type": "string",
6092-
"format": "uuid",
6093-
"description": "ワークフロー実行の識別子。"
6094-
},
60956085
"node_id": {
60966086
"type": "string",
60976087
"description": "フォームが記入された Human Input ノードの ID。"
@@ -6132,11 +6122,6 @@
61326122
"data": {
61336123
"type": "object",
61346124
"properties": {
6135-
"workflow_run_id": {
6136-
"type": "string",
6137-
"format": "uuid",
6138-
"description": "ワークフロー実行の識別子。"
6139-
},
61406125
"node_id": {
61416126
"type": "string",
61426127
"description": "フォームが期限切れとなった Human Input ノードの ID。"

ja/api-reference/openapi_workflow.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4127,11 +4127,6 @@
41274127
"data": {
41284128
"type": "object",
41294129
"properties": {
4130-
"workflow_run_id": {
4131-
"type": "string",
4132-
"format": "uuid",
4133-
"description": "ワークフロー実行の識別子。"
4134-
},
41354130
"form_id": {
41364131
"type": "string",
41374132
"description": "人間の入力フォームインスタンスの識別子。"
@@ -4252,11 +4247,6 @@
42524247
"data": {
42534248
"type": "object",
42544249
"properties": {
4255-
"workflow_run_id": {
4256-
"type": "string",
4257-
"format": "uuid",
4258-
"description": "ワークフロー実行の識別子。"
4259-
},
42604250
"node_id": {
42614251
"type": "string",
42624252
"description": "フォームが記入された Human Input ノードの ID。"
@@ -4297,11 +4287,6 @@
42974287
"data": {
42984288
"type": "object",
42994289
"properties": {
4300-
"workflow_run_id": {
4301-
"type": "string",
4302-
"format": "uuid",
4303-
"description": "ワークフロー実行の識別子。"
4304-
},
43054290
"node_id": {
43064291
"type": "string",
43074292
"description": "フォームが期限切れとなった Human Input ノードの ID。"

zh/api-reference/openapi_chatflow.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5895,11 +5895,6 @@
58955895
"data": {
58965896
"type": "object",
58975897
"properties": {
5898-
"workflow_run_id": {
5899-
"type": "string",
5900-
"format": "uuid",
5901-
"description": "工作流运行的标识。"
5902-
},
59035898
"form_id": {
59045899
"type": "string",
59055900
"description": "人工介入表单实例的标识。"
@@ -6087,11 +6082,6 @@
60876082
"data": {
60886083
"type": "object",
60896084
"properties": {
6090-
"workflow_run_id": {
6091-
"type": "string",
6092-
"format": "uuid",
6093-
"description": "工作流运行的标识。"
6094-
},
60956085
"node_id": {
60966086
"type": "string",
60976087
"description": "表单被填写的 Human Input 节点 ID。"
@@ -6132,11 +6122,6 @@
61326122
"data": {
61336123
"type": "object",
61346124
"properties": {
6135-
"workflow_run_id": {
6136-
"type": "string",
6137-
"format": "uuid",
6138-
"description": "工作流运行的标识。"
6139-
},
61406125
"node_id": {
61416126
"type": "string",
61426127
"description": "表单过期的 Human Input 节点 ID。"

zh/api-reference/openapi_workflow.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4127,11 +4127,6 @@
41274127
"data": {
41284128
"type": "object",
41294129
"properties": {
4130-
"workflow_run_id": {
4131-
"type": "string",
4132-
"format": "uuid",
4133-
"description": "工作流运行的标识。"
4134-
},
41354130
"form_id": {
41364131
"type": "string",
41374132
"description": "人工介入表单实例的标识。"
@@ -4252,11 +4247,6 @@
42524247
"data": {
42534248
"type": "object",
42544249
"properties": {
4255-
"workflow_run_id": {
4256-
"type": "string",
4257-
"format": "uuid",
4258-
"description": "工作流运行的标识。"
4259-
},
42604250
"node_id": {
42614251
"type": "string",
42624252
"description": "表单被填写的 Human Input 节点 ID。"
@@ -4297,11 +4287,6 @@
42974287
"data": {
42984288
"type": "object",
42994289
"properties": {
4300-
"workflow_run_id": {
4301-
"type": "string",
4302-
"format": "uuid",
4303-
"description": "工作流运行的标识。"
4304-
},
43054290
"node_id": {
43064291
"type": "string",
43074292
"description": "表单过期的 Human Input 节点 ID。"

0 commit comments

Comments
 (0)