Skip to content

Commit e8fc1a5

Browse files
Clarify that Nexus Failure details must be JSON serializable (#506)
Co-authored-by: Spencer Judge <[email protected]>
1 parent fd15e36 commit e8fc1a5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

openapi/openapiv2.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6859,7 +6859,8 @@
68596859
},
68606860
"details": {
68616861
"type": "string",
6862-
"format": "byte"
6862+
"format": "byte",
6863+
"description": "UTF-8 encoded JSON serializable details."
68636864
}
68646865
},
68656866
"title": "A general purpose failure message.\nSee: https://github.com/nexus-rpc/api/blob/main/SPEC.md#failure"

temporal/api/nexus/v1/message.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import "temporal/api/common/v1/message.proto";
3737
message Failure {
3838
string message = 1;
3939
map<string, string> metadata = 2;
40+
// UTF-8 encoded JSON serializable details.
4041
bytes details = 3;
4142
}
4243

0 commit comments

Comments
 (0)