From 33f732f2540c0cc563d040b0383846d7901abb8b Mon Sep 17 00:00:00 2001 From: smutel Date: Tue, 7 Jun 2022 15:08:51 +0000 Subject: [PATCH] ci: Autogeneration of go-netbox library --- netbox/models/contact_assignment.go | 11 +---------- netbox/swagger-v3.1.11.json | 4 ---- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/netbox/models/contact_assignment.go b/netbox/models/contact_assignment.go index e44ed542..2008bd23 100644 --- a/netbox/models/contact_assignment.go +++ b/netbox/models/contact_assignment.go @@ -63,7 +63,7 @@ type ContactAssignment struct { // Object // Read Only: true - Object map[string]*string `json:"object,omitempty"` + Object interface{} `json:"object,omitempty"` // Object id // Required: true @@ -269,10 +269,6 @@ func (m *ContactAssignment) ContextValidate(ctx context.Context, formats strfmt. res = append(res, err) } - if err := m.contextValidateObject(ctx, formats); err != nil { - res = append(res, err) - } - if err := m.contextValidatePriority(ctx, formats); err != nil { res = append(res, err) } @@ -343,11 +339,6 @@ func (m *ContactAssignment) contextValidateLastUpdated(ctx context.Context, form return nil } -func (m *ContactAssignment) contextValidateObject(ctx context.Context, formats strfmt.Registry) error { - - return nil -} - func (m *ContactAssignment) contextValidatePriority(ctx context.Context, formats strfmt.Registry) error { if m.Priority != nil { diff --git a/netbox/swagger-v3.1.11.json b/netbox/swagger-v3.1.11.json index de399c7c..6bd9824f 100644 --- a/netbox/swagger-v3.1.11.json +++ b/netbox/swagger-v3.1.11.json @@ -1756,10 +1756,6 @@ "type" : "string" }, "object" : { - "additionalProperties" : { - "type" : "string", - "x-nullable" : true - }, "readOnly" : true, "title" : "Object", "type" : "object"