Skip to content

Commit 3c1a08a

Browse files
committed
Use string for reason
1 parent c295291 commit 3c1a08a

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
@@ -9919,7 +9919,7 @@
99199919
"type": "string"
99209920
},
99219921
"reason": {
9922-
"$ref": "#/definitions/v1LinkReason"
9922+
"type": "string"
99239923
}
99249924
},
99259925
"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."
@@ -15096,16 +15096,6 @@
1509615096
},
1509715097
"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."
1509815098
},
15099-
"v1LinkReason": {
15100-
"type": "string",
15101-
"enum": [
15102-
"LINK_REASON_UNSPECIFIED",
15103-
"LINK_REASON_QUERY",
15104-
"LINK_REASON_UPDATE_REJECTED"
15105-
],
15106-
"default": "LINK_REASON_UNSPECIFIED",
15107-
"description": "LinkReason is the reason for linking to a workflow execution."
15108-
},
1510915099
"v1ListActivityExecutionsResponse": {
1511015100
"type": "object",
1511115101
"properties": {

openapi/openapiv3.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11691,12 +11691,7 @@ components:
1169111691
runId:
1169211692
type: string
1169311693
reason:
11694-
enum:
11695-
- LINK_REASON_UNSPECIFIED
11696-
- LINK_REASON_QUERY
11697-
- LINK_REASON_UPDATE_REJECTED
1169811694
type: string
11699-
format: enum
1170011695
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."
1170111696
Link_WorkflowEvent:
1170211697
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)