Skip to content

Commit 7bd7de8

Browse files
committed
Use string for reason
1 parent ee1d483 commit 7bd7de8

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
@@ -10767,7 +10767,7 @@
1076710767
"type": "string"
1076810768
},
1076910769
"reason": {
10770-
"$ref": "#/definitions/v1LinkReason"
10770+
"type": "string"
1077110771
}
1077210772
},
1077310773
"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."
@@ -16070,16 +16070,6 @@
1607016070
},
1607116071
"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."
1607216072
},
16073-
"v1LinkReason": {
16074-
"type": "string",
16075-
"enum": [
16076-
"LINK_REASON_UNSPECIFIED",
16077-
"LINK_REASON_QUERY",
16078-
"LINK_REASON_UPDATE_REJECTED"
16079-
],
16080-
"default": "LINK_REASON_UNSPECIFIED",
16081-
"description": "LinkReason is the reason for linking to a workflow execution."
16082-
},
1608316073
"v1ListActivityExecutionsResponse": {
1608416074
"type": "object",
1608516075
"properties": {

openapi/openapiv3.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12535,12 +12535,7 @@ components:
1253512535
runId:
1253612536
type: string
1253712537
reason:
12538-
enum:
12539-
- LINK_REASON_UNSPECIFIED
12540-
- LINK_REASON_QUERY
12541-
- LINK_REASON_UPDATE_REJECTED
1254212538
type: string
12543-
format: enum
1254412539
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."
1254512540
Link_WorkflowEvent:
1254612541
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)