Skip to content

Commit f853f2a

Browse files
committed
prevent overwriting properties when values not passed
1 parent a8afd16 commit f853f2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extras/jsonrpc/daemon.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ type Location struct {
232232
Longitude *string `json:"longitude,omitempty"`
233233
}
234234
type ClaimCreateOptions struct {
235-
Title string `json:"title"`
236-
Description string `json:"description"`
235+
Title *string `json:"title,omitempty"`
236+
Description *string `json:"description,omitempty"`
237237
Tags []string `json:"tags,omitempty"`
238238
Languages []string `json:"languages,omitempty"`
239239
Locations []Location `json:"locations,omitempty"`

0 commit comments

Comments
 (0)