From 28aa66b2f440f87fcc0cbc25d8df9b335a3086df Mon Sep 17 00:00:00 2001 From: "marko.tikvic" Date: Fri, 20 Mar 2020 11:47:18 +0100 Subject: [PATCH] remove ommitempty because KC depends on it --- payload.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/payload.go b/payload.go index 24863a8..784d900 100644 --- a/payload.go +++ b/payload.go @@ -51,13 +51,13 @@ type Translation struct { // Payload ... type Payload struct { Method string `json:"method"` - Params map[string]string `json:"params,omitempty"` - Lang []Translation `json:"lang,omitempty"` - Fields []Field `json:"fields,omitempty"` - Correlations []CorrelationField `json:"correlationFields,omitempty"` - IDField string `json:"idField,omitempty"` + Params map[string]string `json:"params"` + Lang []Translation `json:"lang"` + Fields []Field `json:"fields"` + Correlations []CorrelationField `json:"correlationFields"` + IDField string `json:"idField"` - Links PaginationLinks `json:"_links,omitempty"` + Links PaginationLinks `json:"_links"` // Data holds JSON payload. It can't be used for itteration. Data interface{} `json:"data"` -- 1.8.1.2