From f52a44afc60b4604eb489638d11afed4430400b4 Mon Sep 17 00:00:00 2001 From: Arran Hobson Sayers Date: Fri, 5 Dec 2025 20:11:45 +0000 Subject: [PATCH] Fix yaml marshalling --- config/notification.go | 2 +- config/save.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/notification.go b/config/notification.go index 0e21745..d534a6a 100644 --- a/config/notification.go +++ b/config/notification.go @@ -7,7 +7,7 @@ import ( "strings" ) -func (c *NotificationType) MarshalJSON() ([]byte, error) { +func (c NotificationType) MarshalJSON() ([]byte, error) { return json.Marshal(c.Value) } diff --git a/config/save.go b/config/save.go index b3ef125..78e753d 100644 --- a/config/save.go +++ b/config/save.go @@ -9,7 +9,7 @@ import ( func Save(conf Config, filePath string) error { // Marshal config - configBytes, err := yaml.Marshal(conf) + configBytes, err := yaml.MarshalWithOptions(conf, yaml.UseJSONMarshaler()) if err != nil { return fmt.Errorf("error marshaling config: %w", err) }