Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #497 from ebuckle/omitempty
Browse files Browse the repository at this point in the history
TemplateRepo Auth pointer
  • Loading branch information
hhellyer authored Jun 16, 2020
2 parents 400c7c6 + 451bee7 commit 6f698af
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkg/utils/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ import "fmt"
type (
// TemplateRepo represents a template repository.
TemplateRepo struct {
Description string `json:"description"`
URL string `json:"url"`
Name string `json:"name"`
ID string `json:"id"`
Enabled bool `json:"enabled"`
Protected bool `json:"protected"`
ProjectStyles []string `json:"projectStyles"`
Authentication Authentication `json:"authentication,omitempty"`
Description string `json:"description"`
URL string `json:"url"`
Name string `json:"name"`
ID string `json:"id"`
Enabled bool `json:"enabled"`
Protected bool `json:"protected"`
ProjectStyles []string `json:"projectStyles"`
Authentication *Authentication `json:"authentication,omitempty"`
}
// Authentication represents a template respository's authentication.
Authentication struct {
Expand Down

0 comments on commit 6f698af

Please sign in to comment.