@@ -72,15 +72,15 @@ func formatHumanReadableTs(ts string) string {
7272 return parsed .Format (time .RFC3339 )
7373}
7474
75- type TemplateDescribeResponse struct {
75+ type DescribeTemplateResponse struct {
7676 // CompatibleBoards List of devices compatible with the template
77- CompatibleBoards * []string `json:"compatible_boards,omitempty"`
77+ CompatibleBoards []string `json:"compatible_boards,omitempty"`
7878
7979 // CreatedAt Template creation date/time
8080 CreatedAt * time.Time `json:"created_at,omitempty"`
8181
8282 // DashboardTemplates List of dashboard templates
83- DashboardTemplates * []DashboardTemplate `json:"dashboard_templates,omitempty"`
83+ DashboardTemplates []DashboardTemplate `json:"dashboard_templates,omitempty"`
8484
8585 // DeletedAt Template soft deletion date/time
8686 DeletedAt * time.Time `json:"deleted_at,omitempty"`
@@ -89,7 +89,7 @@ type TemplateDescribeResponse struct {
8989 Description string `json:"description"`
9090
9191 // ImageLinks Optional list of images to be included in the template
92- ImageLinks * []string `json:"image_links,omitempty"`
92+ ImageLinks []string `json:"image_links,omitempty"`
9393
9494 // Name Template name
9595 Name string `json:"name" validate:"required,max=128"`
@@ -99,10 +99,10 @@ type TemplateDescribeResponse struct {
9999 TemplateId uuid.UUID `json:"template_id" validate:"required,uuid"`
100100
101101 // ThingTemplates List of thing templates
102- ThingTemplates * []ThingTemplate `json:"thing_templates,omitempty"`
102+ ThingTemplates []ThingTemplate `json:"thing_templates,omitempty"`
103103
104104 // TriggerTemplates List of trigger templates
105- TriggerTemplates * []TriggerTemplate `json:"trigger_templates,omitempty"`
105+ TriggerTemplates []TriggerTemplate `json:"trigger_templates,omitempty"`
106106
107107 // UpdatedAt Template update date/time
108108 UpdatedAt * time.Time `json:"updated_at,omitempty"`
@@ -119,10 +119,10 @@ type ThingTemplate struct {
119119 Name string `json:"name"`
120120
121121 // Tags Tags
122- Tags * []Tag `json:"tags,omitempty"`
122+ Tags []Tag `json:"tags,omitempty"`
123123
124124 // Variables Thing variables
125- Variables * []Variable `json:"variables,omitempty"`
125+ Variables []Variable `json:"variables,omitempty"`
126126
127127 // WebhookUri Webhook URI
128128 WebhookUri * string `json:"webhook_uri,omitempty"`
@@ -181,13 +181,13 @@ type Widget struct {
181181 Name string `json:"name"`
182182
183183 // Options Widget options
184- Options * map [string ]interface {} `json:"options,omitempty"`
184+ Options map [string ]interface {} `json:"options,omitempty"`
185185
186186 // Type Widget type
187187 Type string `json:"type"`
188188
189189 // Variables Widget variables
190- Variables * []WidgetVariable `json:"variables,omitempty"`
190+ Variables []WidgetVariable `json:"variables,omitempty"`
191191
192192 // Width Width
193193 Width * float32 `json:"width,omitempty"`
@@ -227,7 +227,7 @@ type WidgetVariable struct {
227227
228228type TriggerTemplate struct {
229229 // Actions Actions
230- Actions * []TriggerAction `json:"actions,omitempty"`
230+ Actions []TriggerAction `json:"actions,omitempty"`
231231
232232 // Active Active
233233 Active * bool `json:"active,omitempty"`
0 commit comments