fix(governance): the settings and people responses no longer fail to encode on an unsupported json tag

This commit is contained in:
sam committed 2026-11-16 05:23:38 +11:00
1 parent 46edda9961
commit 983f462740
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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) {