Skip to content

Commit

Permalink
Clarify that Nexus Failure details must be JSON serializable (#506)
Browse files Browse the repository at this point in the history
Co-authored-by: Spencer Judge <[email protected]>
  • Loading branch information
bergundy and Sushisource authored Dec 19, 2024
1 parent fd15e36 commit e8fc1a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openapi/openapiv2.json
Original file line number Diff line number Diff line change
Expand Up @@ -6859,7 +6859,8 @@
},
"details": {
"type": "string",
"format": "byte"
"format": "byte",
"description": "UTF-8 encoded JSON serializable details."
}
},
"title": "A general purpose failure message.\nSee: https://github.com/nexus-rpc/api/blob/main/SPEC.md#failure"
Expand Down
1 change: 1 addition & 0 deletions temporal/api/nexus/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import "temporal/api/common/v1/message.proto";
message Failure {
string message = 1;
map<string, string> metadata = 2;
// UTF-8 encoded JSON serializable details.
bytes details = 3;
}

Expand Down

0 comments on commit e8fc1a5

Please sign in to comment.