From 2519c4e5afe3611be43abf0c682b8fe13ff95a64 Mon Sep 17 00:00:00 2001 From: Cycloid Date: Thu, 6 Jul 2023 08:45:49 +0000 Subject: [PATCH 1/2] Bump swagger client to version v4.0.178 --- client/models/subscription.go | 21 +++++++++++++++++++++ client/version | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/client/models/subscription.go b/client/models/subscription.go index 4ce3e994..e47dcc44 100644 --- a/client/models/subscription.go +++ b/client/models/subscription.go @@ -21,6 +21,10 @@ import ( // swagger:model Subscription type Subscription struct { + // current members + // Minimum: 0 + CurrentMembers *uint64 `json:"current_members,omitempty"` + // expires at // Required: true // Minimum: 0 @@ -39,6 +43,10 @@ type Subscription struct { func (m *Subscription) Validate(formats strfmt.Registry) error { var res []error + if err := m.validateCurrentMembers(formats); err != nil { + res = append(res, err) + } + if err := m.validateExpiresAt(formats); err != nil { res = append(res, err) } @@ -57,6 +65,19 @@ func (m *Subscription) Validate(formats strfmt.Registry) error { return nil } +func (m *Subscription) validateCurrentMembers(formats strfmt.Registry) error { + + if swag.IsZero(m.CurrentMembers) { // not required + return nil + } + + if err := validate.MinimumInt("current_members", "body", int64(*m.CurrentMembers), 0, false); err != nil { + return err + } + + return nil +} + func (m *Subscription) validateExpiresAt(formats strfmt.Registry) error { if err := validate.Required("expires_at", "body", m.ExpiresAt); err != nil { diff --git a/client/version b/client/version index 242c75a1..9668e0cd 100644 --- a/client/version +++ b/client/version @@ -1 +1 @@ -v4.0.162 +v4.0.178 From c82a78ce2194a31bf010b46fdda31bae0f594dde Mon Sep 17 00:00:00 2001 From: Cycloid Date: Thu, 6 Jul 2023 08:46:35 +0000 Subject: [PATCH 2/2] Changelog: Add entry for new version v4.0.178 --- changelog/unreleased/CLI-CHANGED-20230706-084635.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 changelog/unreleased/CLI-CHANGED-20230706-084635.yaml diff --git a/changelog/unreleased/CLI-CHANGED-20230706-084635.yaml b/changelog/unreleased/CLI-CHANGED-20230706-084635.yaml new file mode 100644 index 00000000..27c5c79e --- /dev/null +++ b/changelog/unreleased/CLI-CHANGED-20230706-084635.yaml @@ -0,0 +1,8 @@ +component: CLI +kind: CHANGED +body: "Update client to version v4.0.178" +time: 2023-07-06T08:46:35.800190513+00:00 +custom: + DETAILS: "" + PR: "198" + TYPE: CLI