Skip to content

Commit

Permalink
use SendableRun to avoid sending not needed fields with default values
Browse files Browse the repository at this point in the history
  • Loading branch information
Svetlana Kopylova committed Jun 27, 2019
1 parent 488f9e3 commit a57d099
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ type SendablePlan struct {
// SendableEntry represents an Entry
// that can be created or updated via the api
type SendableEntry struct {
SuiteID int `json:"suite_id"`
Name string `json:"name,omitempty"`
AssignedtoID int `json:"assignedto_id,omitempty"`
IncludeAll bool `json:"include_all"`
CaseIDs []int `json:"case_ids,omitempty"`
ConfigIDs []int `json:"config_ids,omitempty"`
Runs []Run `json:"runs,omitempty"`
SuiteID int `json:"suite_id"`
Name string `json:"name,omitempty"`
AssignedtoID int `json:"assignedto_id,omitempty"`
IncludeAll bool `json:"include_all"`
CaseIDs []int `json:"case_ids,omitempty"`
ConfigIDs []int `json:"config_ids,omitempty"`
Runs []SendableRun `json:"runs,omitempty"`
}

// GetPlan returns the existing plan planID
Expand Down

0 comments on commit a57d099

Please sign in to comment.