Skip to content

Commit d6984f1

Browse files
committed
Use string for reason
1 parent 82a1f2c commit d6984f1

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
@@ -9200,7 +9200,7 @@
92009200
"type": "string"
92019201
},
92029202
"reason": {
9203-
"$ref": "#/definitions/v1LinkReason"
9203+
"type": "string"
92049204
}
92059205
},
92069206
"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."
@@ -14200,16 +14200,6 @@
1420014200
},
1420114201
"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."
1420214202
},
14203-
"v1LinkReason": {
14204-
"type": "string",
14205-
"enum": [
14206-
"LINK_REASON_UNSPECIFIED",
14207-
"LINK_REASON_QUERY",
14208-
"LINK_REASON_UPDATE_REJECTED"
14209-
],
14210-
"default": "LINK_REASON_UNSPECIFIED",
14211-
"description": "LinkReason is the reason for linking to a workflow execution."
14212-
},
1421314203
"v1ListActivityExecutionsResponse": {
1421414204
"type": "object",
1421514205
"properties": {

openapi/openapiv3.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10982,12 +10982,7 @@ components:
1098210982
runId:
1098310983
type: string
1098410984
reason:
10985-
enum:
10986-
- LINK_REASON_UNSPECIFIED
10987-
- LINK_REASON_QUERY
10988-
- LINK_REASON_UPDATE_REJECTED
1098910985
type: string
10990-
format: enum
1099110986
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."
1099210987
Link_WorkflowEvent:
1099310988
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;
@@ -255,7 +254,7 @@ message Link {
255254
string namespace = 1;
256255
string workflow_id = 2;
257256
string run_id = 3;
258-
temporal.api.enums.v1.LinkReason reason = 4;
257+
string reason = 4;
259258
}
260259

261260
oneof variant {

temporal/api/enums/v1/link.proto

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

0 commit comments

Comments
 (0)