Skip to content

Commit b9cbdd4

Browse files
committed
Update bymonthdays to support negative values
Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent 30e544c commit b9cbdd4

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414

1515
## Bug Fixes
1616

17-
<!-- Here goes notable bug fixes that are worth a special mention or explanation -->
17+
* The field `bymonthdays` the recurrence definition also supports negative values and was updated accordingly.

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,11 @@ message RecurrenceRule {
276276
// On which day(s) of the week does the event occur
277277
repeated Weekday byweekdays = 6;
278278

279-
// On which day(s) of the month does the event occur
280-
repeated uint32 bymonthdays = 7;
279+
// On which day(s) of the month does the event occur. Valid values are 1 to 31 or -31 to -1.
280+
//
281+
// For example, -10 represents the tenth to the last day of the month.
282+
// The bymonthdays rule part MUST NOT be specified when the FREQ rule part is set to WEEKLY.
283+
repeated int32 bymonthdays = 7;
281284

282285
// On which month(s) of the year does the event occur
283286
repeated uint32 bymonths = 8;

0 commit comments

Comments
 (0)