fix(governance): the settings and people responses no longer fail to encode on an unsupported json tag
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -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 {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user