From 935fa83b937f301e583d9fd0ba64fa73f62eda2d Mon Sep 17 00:00:00 2001 From: Daniel Arroyo Date: Thu, 9 Jul 2026 21:25:49 -0400 Subject: [PATCH] fix: add json tags to DeployResult for camelCase serialization DeployResult struct fields were serializing as PascalCase (Success, Messages, Errors) but the TypeScript frontend expected camelCase (success, messages, errors). Adding json:"..." tags fixes the mismatch. --- internal/sshmanager/deploy.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/sshmanager/deploy.go b/internal/sshmanager/deploy.go index 30338ee..9fe1ea2 100644 --- a/internal/sshmanager/deploy.go +++ b/internal/sshmanager/deploy.go @@ -20,9 +20,9 @@ type DeployKey struct { } type DeployResult struct { - Success bool - Messages []string - Errors []string + Success bool `json:"success"` + Messages []string `json:"messages"` + Errors []string `json:"errors"` } func DeployKeysToMachine(ctx context.Context, serverKeyPath string, host string, port int, user string, keys []DeployKey, knownHostsHosts []string) (*DeployResult, error) {