Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions projects/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ type ProjectGetResponse struct {
// ProjectCategories contains the categories associated with the project.
//
// The key is the string representation of the project category ID.
ProjectCategories map[string]ProjectCategory `json:"projectCategories"`
ProjectCategories map[string]ProjectCategory `json:"projectCategories,omitempty"`
} `json:"included"`
}

Expand Down Expand Up @@ -862,7 +862,7 @@ type ProjectListResponse struct {
// ProjectCategories contains the categories associated with the project.
//
// The key is the string representation of the project category ID.
ProjectCategories map[string]ProjectCategory `json:"projectCategories"`
ProjectCategories map[string]ProjectCategory `json:"projectCategories,omitempty"`
} `json:"included"`
}

Expand Down
20 changes: 10 additions & 10 deletions projects/rates.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ type RateInstallationUserListResponse struct {

// Included contains related data.
Included struct {
Currencies map[string]Currency `json:"currencies"`
Users map[string]twapi.Relationship `json:"users"`
Currencies map[string]Currency `json:"currencies,omitempty"`
Users map[string]twapi.Relationship `json:"users,omitempty"`
} `json:"included"`
}

Expand Down Expand Up @@ -475,7 +475,7 @@ type RateInstallationUserGetResponse struct {

// Included contains related data.
Included struct {
Currencies map[string]Currency `json:"currencies"`
Currencies map[string]Currency `json:"currencies,omitempty"`
} `json:"included"`
}

Expand Down Expand Up @@ -741,7 +741,7 @@ type RateProjectGetResponse struct {

// Included contains related data.
Included struct {
Currencies map[string]Currency `json:"currencies"`
Currencies map[string]Currency `json:"currencies,omitempty"`
} `json:"included"`
}

Expand Down Expand Up @@ -1068,9 +1068,9 @@ type RateProjectUserListResponse struct {

// Included contains related data.
Included struct {
CostRates map[string]any `json:"costRates"`
Currencies map[string]Currency `json:"currencies"`
Users map[string]twapi.Relationship `json:"users"`
CostRates map[string]any `json:"costRates,omitempty"`
Currencies map[string]Currency `json:"currencies,omitempty"`
Users map[string]twapi.Relationship `json:"users,omitempty"`
} `json:"included"`
}

Expand Down Expand Up @@ -1192,7 +1192,7 @@ type RateProjectUserGetResponse struct {

// Included contains related data.
Included struct {
Currencies map[string]Currency `json:"currencies"`
Currencies map[string]Currency `json:"currencies,omitempty"`
} `json:"included"`
}

Expand Down Expand Up @@ -1448,8 +1448,8 @@ type RateProjectUserHistoryGetResponse struct {

// Included contains related data.
Included struct {
Currencies map[string]Currency `json:"currencies"`
Users map[string]twapi.Relationship `json:"users"`
Currencies map[string]Currency `json:"currencies,omitempty"`
Users map[string]twapi.Relationship `json:"users,omitempty"`
} `json:"included"`
}

Expand Down
26 changes: 13 additions & 13 deletions projects/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,55 +223,55 @@ type SearchResponse struct {
// results.
//
// The key is the string representation of the calendar event ID.
CalendarEvents map[string]CalendarEvent `json:"calendarEvents"`
CalendarEvents map[string]CalendarEvent `json:"calendarEvents,omitempty"`
// Comments contains the comments associated with the search results.
//
// The key is the string representation of the comment ID.
Comments map[string]Comment `json:"comments"`
Comments map[string]Comment `json:"comments,omitempty"`
// Companies contains the companies associated with the search results.
//
// The key is the string representation of the company ID.
Companies map[string]Company `json:"companies"`
Companies map[string]Company `json:"companies,omitempty"`
// Links contains the links associated with the search results.
//
// The key is the string representation of the link ID.
Links map[string]Link `json:"links"`
Links map[string]Link `json:"links,omitempty"`
// Messages contains the messages associated with the search results.
//
// The key is the string representation of the message ID.
Messages map[string]Message `json:"messages"`
Messages map[string]Message `json:"messages,omitempty"`
// Milestones contains the milestones associated with the search results.
//
// The key is the string representation of the milestone ID.
Milestones map[string]Milestone `json:"milestones"`
Milestones map[string]Milestone `json:"milestones,omitempty"`
// Notebooks contains the notebooks associated with the search results.
//
// The key is the string representation of the notebook ID.
Notebooks map[string]Notebook `json:"notebooks"`
Notebooks map[string]Notebook `json:"notebooks,omitempty"`
// Projects contains the projects associated with the search results.
//
// The key is the string representation of the project ID.
Projects map[string]Project `json:"projects"`
Projects map[string]Project `json:"projects,omitempty"`
// Tasklists contains the tasklists associated with the search results.
//
// The key is the string representation of the tasklist ID.
Tasklists map[string]Tasklist `json:"tasklists"`
Tasklists map[string]Tasklist `json:"tasklists,omitempty"`
// Tasks contains the tasks associated with the search results.
//
// The key is the string representation of the task ID.
Tasks map[string]Task `json:"tasks"`
Tasks map[string]Task `json:"tasks,omitempty"`
// Teams contains the teams associated with the search results.
//
// The key is the string representation of the team ID.
Teams map[string]Team `json:"teams"`
Teams map[string]Team `json:"teams,omitempty"`
// Timelogs contains the timelogs associated with the search results.
//
// The key is the string representation of the timelog ID.
Timelogs map[string]Timelog `json:"timelogs"`
Timelogs map[string]Timelog `json:"timelogs,omitempty"`
// Users contains the users associated with the search results.
//
// The key is the string representation of the user ID.
Users map[string]User `json:"users"`
Users map[string]User `json:"users,omitempty"`
} `json:"included"`
}

Expand Down