Add omitempty to requires property.
This commit is contained in:
parent
907162be44
commit
528d0910ab
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ type Template struct {
|
||||||
TemplatePath string `json:"template"`
|
TemplatePath string `json:"template"`
|
||||||
Path string `json:"path"`
|
Path string `json:"path"`
|
||||||
Comment string `json:"comment"`
|
Comment string `json:"comment"`
|
||||||
RequiredData []string `json:"requires"`
|
RequiredData []string `json:"requires,omitempty"`
|
||||||
Content []byte `json:"-"`
|
Content []byte `json:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue