From b4a4fd6c9cc4717a0781edc646803ba367eb133a Mon Sep 17 00:00:00 2001 From: Tim Raymond Date: Wed, 2 Aug 2017 13:07:27 -0400 Subject: [PATCH] Remove omitempty from Axis Label If the key is always present in the response, it's easier for the front end to perform tests on contents of its key. --- chronograf.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chronograf.go b/chronograf.go index 336dc2d0c..319065bef 100644 --- a/chronograf.go +++ b/chronograf.go @@ -569,9 +569,9 @@ type Dashboard struct { // Axis represents the visible extents of a visualization type Axis struct { - Bounds []string `json:"bounds"` // bounds are an arbitrary list of client-defined strings that specify the viewport for a cell - LegacyBounds [2]int64 `json:"-"` // legacy bounds are for testing a migration from an earlier version of axis - Label string `json:"label,omitempty"` // label is a description of this Axis + Bounds []string `json:"bounds"` // bounds are an arbitrary list of client-defined strings that specify the viewport for a cell + LegacyBounds [2]int64 `json:"-"` // legacy bounds are for testing a migration from an earlier version of axis + Label string `json:"label"` // label is a description of this Axis } // DashboardCell holds visual and query information for a cell