1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-01-22 03:10:10 +02:00

Fix of Project.Roles Unmarshal Bug

It is now possible to unmarshal all roles completely flexible in a map.
Before it was only possible to save a role called "Developers"
This commit is contained in:
Matthias Weiss 2018-10-12 11:53:03 +02:00 committed by Wes McNamee
parent 3ef5870bca
commit c30eba2b69

View File

@ -49,9 +49,7 @@ type Project struct {
AssigneeType string `json:"assigneeType,omitempty" structs:"assigneeType,omitempty"`
Versions []Version `json:"versions,omitempty" structs:"versions,omitempty"`
Name string `json:"name,omitempty" structs:"name,omitempty"`
Roles struct {
Developers string `json:"Developers,omitempty" structs:"Developers,omitempty"`
} `json:"roles,omitempty" structs:"roles,omitempty"`
Roles map[string]string `json:"roles,omitempty" structs:"roles,omitempty"`
AvatarUrls AvatarUrls `json:"avatarUrls,omitempty" structs:"avatarUrls,omitempty"`
ProjectCategory ProjectCategory `json:"projectCategory,omitempty" structs:"projectCategory,omitempty"`
}