From f7c7f469d6a5bc9af717cdcca5f98d61cf9fabed Mon Sep 17 00:00:00 2001 From: Kyle Wong <37189875+kyle-a-wong@users.noreply.github.com> Date: Thu, 26 Sep 2024 13:27:27 -0400 Subject: [PATCH] server: fix dbMetadata type json Updates the dbMetadata type to not have omitempty in the json struct tags for any fields. Epic: None Release note: None --- pkg/server/api_v2_databases_metadata.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/server/api_v2_databases_metadata.go b/pkg/server/api_v2_databases_metadata.go index 2dc2b99773a9..2ad0736436a2 100644 --- a/pkg/server/api_v2_databases_metadata.go +++ b/pkg/server/api_v2_databases_metadata.go @@ -994,10 +994,10 @@ type tableMetadata struct { } type dbMetadata struct { - DbId int64 `json:"db_id,omitempty"` - DbName string `json:"db_name,omitempty"` - SizeBytes int64 `json:"size_bytes,omitempty"` - TableCount int64 `json:"table_count,omitempty"` + DbId int64 `json:"db_id"` + DbName string `json:"db_name"` + SizeBytes int64 `json:"size_bytes"` + TableCount int64 `json:"table_count"` StoreIds []int64 `json:"store_ids"` LastUpdated *time.Time `json:"last_updated"` }