types.go
changeset 232 de13b1d39099
parent 228 21056fc9563e
child 236 5b87cc73ed97
--- a/types.go	Wed Sep 05 02:33:23 2018 +0200
+++ b/types.go	Wed Sep 05 02:33:23 2018 +0200
@@ -257,9 +257,9 @@
 
 // SourceParams is a source params structure
 type SourceParams struct { // Used for verify_credentials
-	Privacy   *string  `json:"privacy"`
-	Language  *string  `json:"language"`
-	Sensitive *bool    `json:"sensitive"`
-	Note      *string  `json:"note"`
-	Fields    *[]Field `json:"fields"`
+	Privacy   *string  `json:"privacy,omitempty"`
+	Language  *string  `json:"language,omitempty"`
+	Sensitive *bool    `json:"sensitive,omitempty"`
+	Note      *string  `json:"note,omitempty"`
+	Fields    *[]Field `json:"fields,omitempty"`
 }