diff --git a/issue.go b/issue.go index ab3e352..7df52e2 100644 --- a/issue.go +++ b/issue.go @@ -32,7 +32,7 @@ type Issue struct { // Attachment represents a JIRA attachment type Attachment struct { Self string `json:"self,omitempty"` - Id string `json:"id,omitempty"` + ID string `json:"id,omitempty"` Filename string `json:"filename,omitempty"` Author *Assignee `json:"author,omitempty"` Created string `json:"created,omitempty"` diff --git a/issue_test.go b/issue_test.go index 382a8f0..4d1f916 100644 --- a/issue_test.go +++ b/issue_test.go @@ -167,7 +167,7 @@ func TestIssueDownloadAttachment(t *testing.T) { t.Error("Expected attachment text", err) } if string(attachment) != testAttachment { - t.Errorf("Expecting an attachment", string(attachment)) + t.Errorf("Expecting an attachment: %s", string(attachment)) } if resp.StatusCode != 200 {