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:
parent
3ef5870bca
commit
c30eba2b69
@ -49,9 +49,7 @@ type Project struct {
|
|||||||
AssigneeType string `json:"assigneeType,omitempty" structs:"assigneeType,omitempty"`
|
AssigneeType string `json:"assigneeType,omitempty" structs:"assigneeType,omitempty"`
|
||||||
Versions []Version `json:"versions,omitempty" structs:"versions,omitempty"`
|
Versions []Version `json:"versions,omitempty" structs:"versions,omitempty"`
|
||||||
Name string `json:"name,omitempty" structs:"name,omitempty"`
|
Name string `json:"name,omitempty" structs:"name,omitempty"`
|
||||||
Roles struct {
|
Roles map[string]string `json:"roles,omitempty" structs:"roles,omitempty"`
|
||||||
Developers string `json:"Developers,omitempty" structs:"Developers,omitempty"`
|
|
||||||
} `json:"roles,omitempty" structs:"roles,omitempty"`
|
|
||||||
AvatarUrls AvatarUrls `json:"avatarUrls,omitempty" structs:"avatarUrls,omitempty"`
|
AvatarUrls AvatarUrls `json:"avatarUrls,omitempty" structs:"avatarUrls,omitempty"`
|
||||||
ProjectCategory ProjectCategory `json:"projectCategory,omitempty" structs:"projectCategory,omitempty"`
|
ProjectCategory ProjectCategory `json:"projectCategory,omitempty" structs:"projectCategory,omitempty"`
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user