Skip to content

Commit d2aaf78

Browse files
committed
Add weak_consistency to DescribeNamespace
1 parent f1e7757 commit d2aaf78

3 files changed

Lines changed: 34 additions & 0 deletions

File tree

openapi/openapiv2.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,13 @@
150150
"in": "query",
151151
"required": false,
152152
"type": "string"
153+
},
154+
{
155+
"name": "weakConsistency",
156+
"description": "If true, the server may serve the response from an eventually-consistent\nsource instead of reading through to persistence. Defaults to false,\nwhich preserves read-after-write consistency.",
157+
"in": "query",
158+
"required": false,
159+
"type": "boolean"
153160
}
154161
],
155162
"tags": [
@@ -5013,6 +5020,13 @@
50135020
"in": "query",
50145021
"required": false,
50155022
"type": "string"
5023+
},
5024+
{
5025+
"name": "weakConsistency",
5026+
"description": "If true, the server may serve the response from an eventually-consistent\nsource instead of reading through to persistence. Defaults to false,\nwhich preserves read-after-write consistency.",
5027+
"in": "query",
5028+
"required": false,
5029+
"type": "boolean"
50165030
}
50175031
],
50185032
"tags": [

openapi/openapiv3.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,14 @@ paths:
109109
in: query
110110
schema:
111111
type: string
112+
- name: weakConsistency
113+
in: query
114+
description: |-
115+
If true, the server may serve the response from an eventually-consistent
116+
source instead of reading through to persistence. Defaults to false,
117+
which preserves read-after-write consistency.
118+
schema:
119+
type: boolean
112120
responses:
113121
"200":
114122
description: OK
@@ -4466,6 +4474,14 @@ paths:
44664474
in: query
44674475
schema:
44684476
type: string
4477+
- name: weakConsistency
4478+
in: query
4479+
description: |-
4480+
If true, the server may serve the response from an eventually-consistent
4481+
source instead of reading through to persistence. Defaults to false,
4482+
which preserves read-after-write consistency.
4483+
schema:
4484+
type: boolean
44694485
responses:
44704486
"200":
44714487
description: OK

temporal/api/workflowservice/v1/request_response.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ message ListNamespacesResponse {
8686
message DescribeNamespaceRequest {
8787
string namespace = 1;
8888
string id = 2;
89+
// If true, the server may serve the response from an eventually-consistent
90+
// source instead of reading through to persistence. Defaults to false,
91+
// which preserves read-after-write consistency.
92+
bool weak_consistency = 3;
8993
}
9094

9195
message DescribeNamespaceResponse {

0 commit comments

Comments
 (0)