From e1ed89a5fbf841206c7ae7a24d0c01aa51801cb0 Mon Sep 17 00:00:00 2001 From: smutel Date: Thu, 16 Jun 2022 06:07:15 +0000 Subject: [PATCH] ci: Autogeneration of go-netbox library --- netbox/models/v_l_a_n_group.go | 15 +-------------- netbox/swagger-v3.1.11.json | 2 +- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/netbox/models/v_l_a_n_group.go b/netbox/models/v_l_a_n_group.go index 301748e0..f2e75e4c 100644 --- a/netbox/models/v_l_a_n_group.go +++ b/netbox/models/v_l_a_n_group.go @@ -68,7 +68,7 @@ type VLANGroup struct { // Scope // Read Only: true - Scope string `json:"scope,omitempty"` + Scope interface{} `json:"scope,omitempty"` // Scope id ScopeID *int64 `json:"scope_id,omitempty"` @@ -266,10 +266,6 @@ func (m *VLANGroup) ContextValidate(ctx context.Context, formats strfmt.Registry res = append(res, err) } - if err := m.contextValidateScope(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidateTags(ctx, formats); err != nil { res = append(res, err) } @@ -324,15 +320,6 @@ func (m *VLANGroup) contextValidateLastUpdated(ctx context.Context, formats strf return nil } -func (m *VLANGroup) contextValidateScope(ctx context.Context, formats strfmt.Registry) error { - - if err := validate.ReadOnly(ctx, "scope", "body", string(m.Scope)); err != nil { - return err - } - - return nil -} - func (m *VLANGroup) contextValidateTags(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.Tags); i++ { diff --git a/netbox/swagger-v3.1.11.json b/netbox/swagger-v3.1.11.json index 6bd9824f..6708337b 100644 --- a/netbox/swagger-v3.1.11.json +++ b/netbox/swagger-v3.1.11.json @@ -11649,7 +11649,7 @@ "scope" : { "readOnly" : true, "title" : "Scope", - "type" : "string" + "type" : "object" }, "scope_id" : { "title" : "Scope id",