Commit 28aa66b2f440f87fcc0cbc25d8df9b335a3086df
1 parent
ec4067ed8b
Exists in
master
remove ommitempty because KC depends on it
Showing
1 changed file
with
6 additions
and
6 deletions
Show diff stats
payload.go
... | ... | @@ -51,13 +51,13 @@ type Translation struct { |
51 | 51 | // Payload ... |
52 | 52 | type Payload struct { |
53 | 53 | Method string `json:"method"` |
54 | - Params map[string]string `json:"params,omitempty"` | |
55 | - Lang []Translation `json:"lang,omitempty"` | |
56 | - Fields []Field `json:"fields,omitempty"` | |
57 | - Correlations []CorrelationField `json:"correlationFields,omitempty"` | |
58 | - IDField string `json:"idField,omitempty"` | |
54 | + Params map[string]string `json:"params"` | |
55 | + Lang []Translation `json:"lang"` | |
56 | + Fields []Field `json:"fields"` | |
57 | + Correlations []CorrelationField `json:"correlationFields"` | |
58 | + IDField string `json:"idField"` | |
59 | 59 | |
60 | - Links PaginationLinks `json:"_links,omitempty"` | |
60 | + Links PaginationLinks `json:"_links"` | |
61 | 61 | |
62 | 62 | // Data holds JSON payload. It can't be used for itteration. |
63 | 63 | Data interface{} `json:"data"` | ... | ... |