mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-08-06 22:13:02 +02:00
Fix board request parameter
The BoardListOption field BoardType was incorrectly mapped to boardType instead of type. This commit fixes it. A generic test helper function (testRequestParams) is added in order to improve the effectiveness of the unit test. Fixes #213
This commit is contained in:
committed by
Andy Grunwald
parent
15b3b53643
commit
7e0dd0ed39
2
board.go
2
board.go
@ -35,7 +35,7 @@ type Board struct {
|
||||
type BoardListOptions struct {
|
||||
// BoardType filters results to boards of the specified type.
|
||||
// Valid values: scrum, kanban.
|
||||
BoardType string `url:"boardType,omitempty"`
|
||||
BoardType string `url:"type,omitempty"`
|
||||
// Name filters results to boards that match or partially match the specified name.
|
||||
Name string `url:"name,omitempty"`
|
||||
// ProjectKeyOrID filters results to boards that are relevant to a project.
|
||||
|
Reference in New Issue
Block a user