omitempty these fields since they can be null (#432)

This commit is contained in:
Reed Allman
2017-10-18 05:31:58 -07:00
committed by Travis Reeder
parent 982e8cf642
commit 5dd4112ee4
2 changed files with 3 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ package models
type App struct {
Name string `json:"name" db:"name"`
Config Config `json:"config" db:"config"`
Config Config `json:"config,omitempty" db:"config"`
}
func (a *App) Validate() error {