Skip to content

Commit 3dfe261

Browse files
committed
Use string for reason
1 parent f90da86 commit 3dfe261

4 files changed

Lines changed: 2 additions & 35 deletions

File tree

openapi/openapiv2.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9933,7 +9933,7 @@
99339933
"type": "string"
99349934
},
99359935
"reason": {
9936-
"$ref": "#/definitions/v1LinkReason"
9936+
"type": "string"
99379937
}
99389938
},
99399939
"description": "A link to a workflow execution. This is a more general version of WorkflowEvent that doesn't specify a \nparticular event within the workflow, useful when you want to link to a workflow but there is no particular event to link to,\nsuch as a Query or a Rejected Update."
@@ -15110,16 +15110,6 @@
1511015110
},
1511115111
"description": "Link can be associated with history events. It might contain information about an external entity\nrelated to the history event. For example, workflow A makes a Nexus call that starts workflow B:\nin this case, a history event in workflow A could contain a Link to the workflow started event in\nworkflow B, and vice-versa."
1511215112
},
15113-
"v1LinkReason": {
15114-
"type": "string",
15115-
"enum": [
15116-
"LINK_REASON_UNSPECIFIED",
15117-
"LINK_REASON_QUERY",
15118-
"LINK_REASON_UPDATE_REJECTED"
15119-
],
15120-
"default": "LINK_REASON_UNSPECIFIED",
15121-
"description": "LinkReason is the reason for linking to a workflow execution."
15122-
},
1512315113
"v1ListActivityExecutionsResponse": {
1512415114
"type": "object",
1512515115
"properties": {

openapi/openapiv3.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11709,12 +11709,7 @@ components:
1170911709
runId:
1171011710
type: string
1171111711
reason:
11712-
enum:
11713-
- LINK_REASON_UNSPECIFIED
11714-
- LINK_REASON_QUERY
11715-
- LINK_REASON_UPDATE_REJECTED
1171611712
type: string
11717-
format: enum
1171811713
description: "A link to a workflow execution. This is a more general version of WorkflowEvent that doesn't specify a \n particular event within the workflow, useful when you want to link to a workflow but there is no particular event to link to,\n such as a Query or a Rejected Update."
1171911714
Link_WorkflowEvent:
1172011715
type: object

temporal/api/common/v1/message.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import "google/protobuf/empty.proto";
1515
import "temporal/api/enums/v1/common.proto";
1616
import "temporal/api/enums/v1/event_type.proto";
1717
import "temporal/api/enums/v1/reset.proto";
18-
import "temporal/api/enums/v1/link.proto";
1918

2019
message DataBlob {
2120
temporal.api.enums.v1.EncodingType encoding_type = 1;
@@ -262,7 +261,7 @@ message Link {
262261
string namespace = 1;
263262
string workflow_id = 2;
264263
string run_id = 3;
265-
temporal.api.enums.v1.LinkReason reason = 4;
264+
string reason = 4;
266265
}
267266

268267
oneof variant {

temporal/api/enums/v1/link.proto

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)