You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by oc...@apache.org on 2021/07/16 23:19:58 UTC
[trafficcontrol] branch master updated: add omitempty to ld fields
(#6037)
This is an automated email from the ASF dual-hosted git repository.
ocket8888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new 7ef1e4b add omitempty to ld fields (#6037)
7ef1e4b is described below
commit 7ef1e4bfa4bd3de88ceef939069579c5feab4bb3
Author: Srijeet Chatterjee <30...@users.noreply.github.com>
AuthorDate: Fri Jul 16 17:19:47 2021 -0600
add omitempty to ld fields (#6037)
---
lib/go-tc/deliveryservices.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/go-tc/deliveryservices.go b/lib/go-tc/deliveryservices.go
index 2884301..d35aab5 100644
--- a/lib/go-tc/deliveryservices.go
+++ b/lib/go-tc/deliveryservices.go
@@ -547,10 +547,10 @@ type DeliveryServiceNullableFieldsV11 struct {
LongDesc *string `json:"longDesc" db:"long_desc"`
// LongDesc1 is a description of the Delivery Service, having arbitrary
// length.
- LongDesc1 *string `json:"longDesc1" db:"long_desc_1"`
+ LongDesc1 *string `json:"longDesc1,omitempty" db:"long_desc_1"`
// LongDesc2 is a description of the Delivery Service, having arbitrary
// length.
- LongDesc2 *string `json:"longDesc2" db:"long_desc_2"`
+ LongDesc2 *string `json:"longDesc2,omitempty" db:"long_desc_2"`
// MatchList is a list of Regular Expressions used for routing the Delivery
// Service. Order matters, and the array is not allowed to be sparse.
MatchList *[]DeliveryServiceMatch `json:"matchList"`