prevent overwriting properties when values not passed

This commit is contained in:
Niko Storni 2019-06-01 03:17:10 +02:00
parent a8afd1621e
commit f853f2a00b

View file

@ -232,8 +232,8 @@ type Location struct {
Longitude *string `json:"longitude,omitempty"`
}
type ClaimCreateOptions struct {
Title string `json:"title"`
Description string `json:"description"`
Title *string `json:"title,omitempty"`
Description *string `json:"description,omitempty"`
Tags []string `json:"tags,omitempty"`
Languages []string `json:"languages,omitempty"`
Locations []Location `json:"locations,omitempty"`