From ec616b68233834f57c45abaa15a0f142f7ee651e Mon Sep 17 00:00:00 2001 From: Cycloid Date: Wed, 27 May 2026 14:23:27 +0000 Subject: [PATCH] Bump API models to version v6.10.24 --- client/models/form_entity.go | 3 +++ client/models/new_environment.go | 23 +++++++---------------- client/models/plugin_manager.go | 31 ------------------------------- client/version | 2 +- 4 files changed, 11 insertions(+), 48 deletions(-) diff --git a/client/models/form_entity.go b/client/models/form_entity.go index 040012e20..d60a5b974 100644 --- a/client/models/form_entity.go +++ b/client/models/form_entity.go @@ -19,6 +19,9 @@ import ( // swagger:model FormEntity type FormEntity struct { + // Optional condition expression that gates whether this widget is displayed. Same V2 syntax as Group.condition (e.g. "$other_field == 'aws'"). Variables prefixed with "ctx_" are runtime-injected and bypass the entity-existence validation. + Condition string `json:"condition,omitempty"` + // The current value that was previously configured for this variable upon creation or update. In case of shared variables having different values, it will be empty, and 'mismatch_values' will be filled instead. Current any `json:"current,omitempty"` diff --git a/client/models/new_environment.go b/client/models/new_environment.go index 0064b2b18..3262f3d50 100644 --- a/client/models/new_environment.go +++ b/client/models/new_environment.go @@ -45,10 +45,14 @@ type NewEnvironment struct { // Owner string `json:"owner,omitempty"` - // type + // Canonical of the environment type. When omitted, it is auto-detected + // from the environment canonical by matching the keywords + // `production`/`prod`/`prd`/`live`, `pre-prod`/`preprod`/`staging`/`stage`/`stg`/`uat`, + // `development`/`dev`/`test`/`qa`/`sandbox`, or `preview`/`prev`. + // When no keyword is recognised, it defaults to `production`. + // // Example: production - // Required: true - Type *string `json:"type"` + Type string `json:"type,omitempty"` // Environment variables to attach to the new environment. Keys must not contain dots and must include at least one alphanumeric character. Omit or pass an empty array to create the environment without variables. Variables []*EnvironmentVariableItem `json:"variables"` @@ -74,10 +78,6 @@ func (m *NewEnvironment) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateType(formats); err != nil { - res = append(res, err) - } - if err := m.validateVariables(formats); err != nil { res = append(res, err) } @@ -157,15 +157,6 @@ func (m *NewEnvironment) validateName(formats strfmt.Registry) error { return nil } -func (m *NewEnvironment) validateType(formats strfmt.Registry) error { - - if err := validate.Required("type", "body", m.Type); err != nil { - return err - } - - return nil -} - func (m *NewEnvironment) validateVariables(formats strfmt.Registry) error { if swag.IsZero(m.Variables) { // not required return nil 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..eb49b111b 100644 --- a/client/version +++ b/client/version @@ -1 +1 @@ -v6.10.12-rc +v6.10.24