fix(cron): remove omitempty from CronPayload.Type for consistent JSON
Empty string and "message" are semantically equivalent defaults; always serializing the field avoids asymmetric JSON output.
This commit is contained in:
parent
a58d15c91d
commit
ea2a3f74da
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ type CronSchedule struct {
|
|||
|
||||
type CronPayload struct {
|
||||
Kind string `json:"kind"`
|
||||
Type string `json:"type,omitempty"` // "message" (default) or "directive"
|
||||
Type string `json:"type"`
|
||||
Message string `json:"message"`
|
||||
Command string `json:"command,omitempty"`
|
||||
Deliver bool `json:"deliver"`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue