Skip to content

Commit 3a31163

Browse files
authored
Switch back to using description for Nexus Endpoints (#420)
1 parent 32d95cb commit 3a31163

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

buf.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ breaking:
1111
- WIRE_JSON
1212
ignore:
1313
- google
14+
# Remove after applying nexus spec description change
15+
- temporal/api/nexus/v1/message.proto
1416
lint:
1517
use:
1618
- DEFAULT

openapi/openapiv2.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -4852,8 +4852,9 @@
48524852
"type": "string",
48534853
"description": "Endpoint name, unique for this cluster. Must match `[a-zA-Z_][a-zA-Z0-9_]*`.\nRenaming an endpoint breaks all workflow callers that reference this endpoint, causing operations to fail."
48544854
},
4855-
"metadata": {
4856-
"$ref": "#/definitions/v1UserMetadata"
4855+
"description": {
4856+
"$ref": "#/definitions/v1Payload",
4857+
"description": "Markdown description serialized as a single JSON string.\nIf the Payload is encrypted, the UI and CLI may decrypt with the configured codec server endpoint.\nBy default, the server enforces a limit of 20,000 bytes for this entire payload."
48574858
},
48584859
"target": {
48594860
"$ref": "#/definitions/v1EndpointTarget",

openapi/openapiv3.yaml

+7-2
Original file line numberDiff line numberDiff line change
@@ -3151,8 +3151,13 @@ components:
31513151
description: |-
31523152
Endpoint name, unique for this cluster. Must match `[a-zA-Z_][a-zA-Z0-9_]*`.
31533153
Renaming an endpoint breaks all workflow callers that reference this endpoint, causing operations to fail.
3154-
metadata:
3155-
$ref: '#/components/schemas/UserMetadata'
3154+
description:
3155+
allOf:
3156+
- $ref: '#/components/schemas/Payload'
3157+
description: |-
3158+
Markdown description serialized as a single JSON string.
3159+
If the Payload is encrypted, the UI and CLI may decrypt with the configured codec server endpoint.
3160+
By default, the server enforces a limit of 20,000 bytes for this entire payload.
31563161
target:
31573162
allOf:
31583163
- $ref: '#/components/schemas/EndpointTarget'

temporal/api/nexus/v1/message.proto

+4-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ option csharp_namespace = "Temporalio.Api.Nexus.V1";
3131

3232
import "google/protobuf/timestamp.proto";
3333
import "temporal/api/common/v1/message.proto";
34-
import "temporal/api/sdk/v1/user_metadata.proto";
3534

3635
// A general purpose failure message.
3736
// See: https://github.com/nexus-rpc/api/blob/main/SPEC.md#failure
@@ -162,7 +161,10 @@ message EndpointSpec {
162161
// Renaming an endpoint breaks all workflow callers that reference this endpoint, causing operations to fail.
163162
string name = 1;
164163

165-
temporal.api.sdk.v1.UserMetadata metadata = 2;
164+
// Markdown description serialized as a single JSON string.
165+
// If the Payload is encrypted, the UI and CLI may decrypt with the configured codec server endpoint.
166+
// By default, the server enforces a limit of 20,000 bytes for this entire payload.
167+
temporal.api.common.v1.Payload description = 2;
166168

167169
// Target to route requests to.
168170
EndpointTarget target = 3;

0 commit comments

Comments
 (0)