From 983f46274006ed16d58d53ed8945f0b6557d9a2b Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Mon, 16 Nov 2026 05:23:38 +1100 Subject: [PATCH] fix(governance): the settings and people responses no longer fail to encode on an unsupported json tag --- modules/governance/governance.go | 2 +- modules/governance/people.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/governance/governance.go b/modules/governance/governance.go index b230b40c7..93861d9c4 100644 --- a/modules/governance/governance.go +++ b/modules/governance/governance.go @@ -105,7 +105,7 @@ type settingsRequest struct { AttemptsPerRun int `json:"attempts_per_run"` DefaultOwner string `json:"default_owner"` // Escalation lists person ids. - Escalation []string `json:"escalation,format:emptyarray"` + Escalation []string `json:"escalation"` } func (s Settings) request() settingsRequest { diff --git a/modules/governance/people.go b/modules/governance/people.go index 153ab0e89..211a23f3e 100644 --- a/modules/governance/people.go +++ b/modules/governance/people.go @@ -48,7 +48,7 @@ type personRequest struct { ID string `json:"id"` Name string `json:"name"` Authority bool `json:"authority"` - Identities []string `json:"identities,format:emptyarray"` + Identities []string `json:"identities"` } func (m *Module) getPeople(w http.ResponseWriter, r *http.Request) {