Skip to content

Commit

Permalink
Reflect that the API doesn't list properties as required
Browse files Browse the repository at this point in the history
  • Loading branch information
mjburtenshaw committed Jan 4, 2024
1 parent f58dc65 commit 8af2f1a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions clickup/custom_task_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ type CustomTaskTypesService service

// See https://clickup.com/api/clickupreference/operation/GetCustomItems/
type GetCustomTaskTypesResponse struct {
CustomItems []CustomItem `json:"custom_items"` // Array of custom task types.
CustomItems []CustomItem `json:"custom_items,omitempty"` // Array of custom task types.
}

// See https://clickup.com/api/clickupreference/operation/GetCustomItems/
type CustomItem struct {
Id int32 `json:"id"` // Custom task type ID.
Name string `json:"name"` // Custom task type name.
NamePlural string `json:"name_plural"` // Custom task type plural name.
Description string `json:"description"` // Custom task type description.
Id int32 `json:"id,omitempty"` // Custom task type ID.
Name string `json:"name,omitempty"` // Custom task type name.
NamePlural string `json:"name_plural,omitempty"` // Custom task type plural name.
Description string `json:"description,omitempty"` // Custom task type description.

// Not documented in API explorer
Avatar CustomItemAvatar `json:"avatar"` // Custom task icon data.
Avatar CustomItemAvatar `json:"avatar,omitempty"` // Custom task icon data.
}

// Not documented in API explorer. Comments are observations.
type CustomItemAvatar struct {
Source string `json:"source"` // null (ClickUp Milestone Glyph), fas (Font Awesome Solid), fab (Font Awesome Brands).
Value string `json:"value"` // null is for ClickUp Glyphs, e.g., Task and Milestone.
Source string `json:"source,omitempty"` // null (ClickUp Milestone Glyph), fas (Font Awesome Solid), fab (Font Awesome Brands).
Value string `json:"value,omitempty"` // null is for ClickUp Glyphs, e.g., Task and Milestone.
}

// See https://clickup.com/api/clickupreference/operation/GetCustomItems/
Expand Down

0 comments on commit 8af2f1a

Please sign in to comment.