From 3500971f035a5eb7590cfe7216cfe8a7a248abdb Mon Sep 17 00:00:00 2001 From: LordMathis Date: Sun, 19 Oct 2025 18:27:22 +0200 Subject: [PATCH] Fix JSON marshaling of backend options by using a pointer --- pkg/instance/options.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/instance/options.go b/pkg/instance/options.go index 375bcbe..0c4b582 100644 --- a/pkg/instance/options.go +++ b/pkg/instance/options.go @@ -163,7 +163,8 @@ func (c *Options) MarshalJSON() ([]byte, error) { aux.BackendType = c.BackendOptions.BackendType // Marshal the backends.Options struct to get the properly formatted backend options - backendData, err := json.Marshal(c.BackendOptions) + // Marshal a pointer to trigger the pointer receiver MarshalJSON method + backendData, err := json.Marshal(&c.BackendOptions) if err != nil { return nil, fmt.Errorf("failed to marshal backend options: %w", err) }