@@ -72,15 +72,15 @@ func formatHumanReadableTs(ts string) string {
72
72
return parsed .Format (time .RFC3339 )
73
73
}
74
74
75
- type TemplateDescribeResponse struct {
75
+ type DescribeTemplateResponse struct {
76
76
// CompatibleBoards List of devices compatible with the template
77
- CompatibleBoards * []string `json:"compatible_boards,omitempty"`
77
+ CompatibleBoards []string `json:"compatible_boards,omitempty"`
78
78
79
79
// CreatedAt Template creation date/time
80
80
CreatedAt * time.Time `json:"created_at,omitempty"`
81
81
82
82
// DashboardTemplates List of dashboard templates
83
- DashboardTemplates * []DashboardTemplate `json:"dashboard_templates,omitempty"`
83
+ DashboardTemplates []DashboardTemplate `json:"dashboard_templates,omitempty"`
84
84
85
85
// DeletedAt Template soft deletion date/time
86
86
DeletedAt * time.Time `json:"deleted_at,omitempty"`
@@ -89,7 +89,7 @@ type TemplateDescribeResponse struct {
89
89
Description string `json:"description"`
90
90
91
91
// 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"`
93
93
94
94
// Name Template name
95
95
Name string `json:"name" validate:"required,max=128"`
@@ -99,10 +99,10 @@ type TemplateDescribeResponse struct {
99
99
TemplateId uuid.UUID `json:"template_id" validate:"required,uuid"`
100
100
101
101
// ThingTemplates List of thing templates
102
- ThingTemplates * []ThingTemplate `json:"thing_templates,omitempty"`
102
+ ThingTemplates []ThingTemplate `json:"thing_templates,omitempty"`
103
103
104
104
// TriggerTemplates List of trigger templates
105
- TriggerTemplates * []TriggerTemplate `json:"trigger_templates,omitempty"`
105
+ TriggerTemplates []TriggerTemplate `json:"trigger_templates,omitempty"`
106
106
107
107
// UpdatedAt Template update date/time
108
108
UpdatedAt * time.Time `json:"updated_at,omitempty"`
@@ -119,10 +119,10 @@ type ThingTemplate struct {
119
119
Name string `json:"name"`
120
120
121
121
// Tags Tags
122
- Tags * []Tag `json:"tags,omitempty"`
122
+ Tags []Tag `json:"tags,omitempty"`
123
123
124
124
// Variables Thing variables
125
- Variables * []Variable `json:"variables,omitempty"`
125
+ Variables []Variable `json:"variables,omitempty"`
126
126
127
127
// WebhookUri Webhook URI
128
128
WebhookUri * string `json:"webhook_uri,omitempty"`
@@ -181,13 +181,13 @@ type Widget struct {
181
181
Name string `json:"name"`
182
182
183
183
// Options Widget options
184
- Options * map [string ]interface {} `json:"options,omitempty"`
184
+ Options map [string ]interface {} `json:"options,omitempty"`
185
185
186
186
// Type Widget type
187
187
Type string `json:"type"`
188
188
189
189
// Variables Widget variables
190
- Variables * []WidgetVariable `json:"variables,omitempty"`
190
+ Variables []WidgetVariable `json:"variables,omitempty"`
191
191
192
192
// Width Width
193
193
Width * float32 `json:"width,omitempty"`
@@ -227,7 +227,7 @@ type WidgetVariable struct {
227
227
228
228
type TriggerTemplate struct {
229
229
// Actions Actions
230
- Actions * []TriggerAction `json:"actions,omitempty"`
230
+ Actions []TriggerAction `json:"actions,omitempty"`
231
231
232
232
// Active Active
233
233
Active * bool `json:"active,omitempty"`
0 commit comments