From f174476cdc243bf427672e20911790eb51e303e0 Mon Sep 17 00:00:00 2001 From: Kalle Carlbark Date: Wed, 11 Sep 2019 11:19:36 +0200 Subject: [PATCH] omitempty for offset and limimt. --- netbox_interfaces.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox_interfaces.go b/netbox_interfaces.go index 2093856..c5f6cbb 100644 --- a/netbox_interfaces.go +++ b/netbox_interfaces.go @@ -84,8 +84,8 @@ type Dcim_Interfaces_List struct { } type InterfaceFilter struct { - Offset int64 `schema:"offset"` - Limit int64 `schema:"limit"` + Offset int64 `schema:"offset,omitempty"` + Limit int64 `schema:"limit,omitempty"` //User specific filters Id string `schema:"id,omitempty"`