From 5ef3e622f1ff87cec78876dae41e67a031b0456e Mon Sep 17 00:00:00 2001 From: ponbiki Date: Thu, 12 Oct 2023 10:04:24 -0400 Subject: [PATCH] remove tag omitempty and update clientVersion --- CHANGELOG.md | 6 ++++++ rest/client.go | 2 +- rest/model/dns/record.go | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d7a0936..6164bd8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 2.7.13 (October 12th, 2023) + +BUG FIXES: + +* Remove `omitempty` from `tags` to allow POST without `tags` after update 2.7.12 + ## 2.7.12 (October 11th, 2023) BUG FIXES: diff --git a/rest/client.go b/rest/client.go index d805bb1..005a2af 100644 --- a/rest/client.go +++ b/rest/client.go @@ -13,7 +13,7 @@ import ( ) const ( - clientVersion = "2.7.12" + clientVersion = "2.7.13" defaultEndpoint = "https://api.nsone.net/v1/" defaultShouldFollowPagination = true diff --git a/rest/model/dns/record.go b/rest/model/dns/record.go index 1a0c315..0feb8e4 100644 --- a/rest/model/dns/record.go +++ b/rest/model/dns/record.go @@ -31,7 +31,7 @@ type Record struct { Regions data.Regions `json:"regions,omitempty"` // Contains the key/value tag information associated to the record - Tags map[string]string `json:"tags,omitempty"` // Only relevant for DDI + Tags map[string]string `json:"tags"` // Only relevant for DDI // List of tag key names that should not inherit from the parent zone BlockedTags []string `json:"blocked_tags"` //Only relevant for DDI