Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
131441: server: fix dbMetadata type json r=kyle-a-wong a=kyle-a-wong

Updates the dbMetadata type to not have `omitempty` in the json struct tags for any fields.

Epic: None
Release note: None

Co-authored-by: Kyle Wong <[email protected]>
  • Loading branch information
craig[bot] and kyle-a-wong committed Sep 26, 2024
2 parents ce5747b + f7c7f46 commit 59b61f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/server/api_v2_databases_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down

0 comments on commit 59b61f1

Please sign in to comment.