From 9a9cdc8c59bd04650d5803966d9cb9dce84d319c Mon Sep 17 00:00:00 2001 From: Cycloid Date: Wed, 27 May 2026 13:09:46 +0000 Subject: [PATCH] Bump API models to version v6.10.20 --- client/models/plugin_manager.go | 31 ------------------------------- client/version | 2 +- 2 files changed, 1 insertion(+), 32 deletions(-) diff --git a/client/models/plugin_manager.go b/client/models/plugin_manager.go index e90624541..ecde75da6 100644 --- a/client/models/plugin_manager.go +++ b/client/models/plugin_manager.go @@ -244,37 +244,6 @@ func (m *PluginManager) ContextValidate(ctx context.Context, formats strfmt.Regi return nil } -// UnmarshalJSON implements json.Unmarshaler with a workaround for backends that -// serialize the status field as an integer (iota) instead of a string. This is -// a known API bug in v6.10.8-rc (fix is entities/plugin.go:83 in meta-gov-env). -// TODO: remove after meta-gov-env merges to develop and swagger client is regenerated. -func (m *PluginManager) UnmarshalJSON(b []byte) error { - var raw map[string]json.RawMessage - if err := json.Unmarshal(b, &raw); err != nil { - return err - } - if statusRaw, ok := raw["status"]; ok && len(statusRaw) > 0 && statusRaw[0] != '"' { - var idx int - if err := json.Unmarshal(statusRaw, &idx); err == nil { - names := []string{"offline", "connected"} - if idx >= 0 && idx < len(names) { - raw["status"] = json.RawMessage(`"` + names[idx] + `"`) - } - } - } - normalized, err := json.Marshal(raw) - if err != nil { - return err - } - type alias PluginManager - var a alias - if err := json.Unmarshal(normalized, &a); err != nil { - return err - } - *m = PluginManager(a) - return nil -} - // MarshalBinary interface implementation func (m *PluginManager) MarshalBinary() ([]byte, error) { if m == nil { diff --git a/client/version b/client/version index 41ae3ddf2..bcd9375ab 100644 --- a/client/version +++ b/client/version @@ -1 +1 @@ -v6.10.12-rc +v6.10.20