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.
This commit is contained in:
@@ -20,9 +20,9 @@ type DeployKey struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type DeployResult struct {
|
type DeployResult struct {
|
||||||
Success bool
|
Success bool `json:"success"`
|
||||||
Messages []string
|
Messages []string `json:"messages"`
|
||||||
Errors []string
|
Errors []string `json:"errors"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeployKeysToMachine(ctx context.Context, serverKeyPath string, host string, port int, user string, keys []DeployKey, knownHostsHosts []string) (*DeployResult, error) {
|
func DeployKeysToMachine(ctx context.Context, serverKeyPath string, host string, port int, user string, keys []DeployKey, knownHostsHosts []string) (*DeployResult, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user