From f853f2a00bc21a20c659bbaa2d11eaf02ce17c8f Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Sat, 1 Jun 2019 03:17:10 +0200 Subject: [PATCH] prevent overwriting properties when values not passed --- extras/jsonrpc/daemon.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/jsonrpc/daemon.go b/extras/jsonrpc/daemon.go index d2ac5ba..969b5f2 100644 --- a/extras/jsonrpc/daemon.go +++ b/extras/jsonrpc/daemon.go @@ -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"`