Skip to content

Commit cc7bb4b

Browse files
authored
Add documentation for payload field (#173)
fixes #163
2 parents 671ddae + 2da5fcd commit cc7bb4b

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ In this release, we have made some changes to the API to improve the user experi
1616

1717
* Create and Update request now returns the new dispatch object.
1818
* Documentation about authentication and encryption was added.
19+
* Enhanced `payload` documentation.
1920

2021
## Bug Fixes
2122

proto/frequenz/api/dispatch/v1/dispatch.proto

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,15 @@ message Dispatch {
117117
// the system to generate logs and observe behavior without making actual changes.
118118
bool is_dry_run = 6;
119119

120-
// The dispatch payload
120+
// The dispatch payload.
121+
//
122+
// Note!!!
123+
// The payload field allows for flexible JSON data to be associated with this dispatch.
124+
// The payload must adhere to the following constraints:
125+
// - Maximum JSON nesting depth: 5 levels.
126+
// - The data should not contain executable code or scripts.
127+
// - Ensure all data is properly sanitized and encoded.
128+
// - The total size of the payload should not exceed 50 KB.
121129
google.protobuf.Struct payload = 7;
122130

123131
// The recurrence rule

0 commit comments

Comments
 (0)