Skip to content

Commit

Permalink
Merge pull request #36 from shrivanithar/case_field
Browse files Browse the repository at this point in the history
Adding omitempty for custom fields in Case
  • Loading branch information
educlos authored May 5, 2022
2 parents 031431a + ed18b69 commit 1953a8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions case.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type Case struct {
UpdatedBy int `json:"updated_by"`
UdpatedOn int `json:"updated_on"`
State int `json:"custom_state,omitempty"`
CustomTestRunConfig []int `json:"custom_testrun_configs"`
CustomTestRunConfig []int `json:"custom_testrun_configs,omitempty"`
}

// CustomStep represents the custom steps
Expand Down Expand Up @@ -70,7 +70,7 @@ type SendableCase struct {
Text string `json:"custom_text,omitempty"`
URL string `json:"custom_url,omitempty"`
User int `json:"custom_user,omitempty"`
CustomTestRunConfig []int `json:"custom_testrun_configs"`
CustomTestRunConfig []int `json:"custom_testrun_configs,omitempty"`
}

// GetCase returns the existing Test Case caseID
Expand Down

0 comments on commit 1953a8c

Please sign in to comment.