Skip to content

Commit 2c53b7e

Browse files
committed
Use string for reason
1 parent 7acb064 commit 2c53b7e

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
@@ -10753,7 +10753,7 @@
1075310753
"type": "string"
1075410754
},
1075510755
"reason": {
10756-
"$ref": "#/definitions/v1LinkReason"
10756+
"type": "string"
1075710757
}
1075810758
},
1075910759
"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."
@@ -16056,16 +16056,6 @@
1605616056
},
1605716057
"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."
1605816058
},
16059-
"v1LinkReason": {
16060-
"type": "string",
16061-
"enum": [
16062-
"LINK_REASON_UNSPECIFIED",
16063-
"LINK_REASON_QUERY",
16064-
"LINK_REASON_UPDATE_REJECTED"
16065-
],
16066-
"default": "LINK_REASON_UNSPECIFIED",
16067-
"description": "LinkReason is the reason for linking to a workflow execution."
16068-
},
1606916059
"v1ListActivityExecutionsResponse": {
1607016060
"type": "object",
1607116061
"properties": {

openapi/openapiv3.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12521,12 +12521,7 @@ components:
1252112521
runId:
1252212522
type: string
1252312523
reason:
12524-
enum:
12525-
- LINK_REASON_UNSPECIFIED
12526-
- LINK_REASON_QUERY
12527-
- LINK_REASON_UPDATE_REJECTED
1252812524
type: string
12529-
format: enum
1253012525
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."
1253112526
Link_WorkflowEvent:
1253212527
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)