File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ func TestPatchTemplateMeta(t *testing.T) {
237
237
ctr .MinAutostartIntervalMillis = ptr .Ref (time .Hour .Milliseconds ())
238
238
})
239
239
req := codersdk.UpdateTemplateMeta {
240
- Name : "My edited template name" ,
240
+ Name : "new- template- name" ,
241
241
Description : "lorem ipsum dolor sit amet et cetera" ,
242
242
MaxTTLMillis : 12 * time .Hour .Milliseconds (),
243
243
MinAutostartIntervalMillis : time .Minute .Milliseconds (),
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ type UpdateActiveTemplateVersion struct {
34
34
}
35
35
36
36
type UpdateTemplateMeta struct {
37
- Name string `json:"name,omitempty"`
37
+ Name string `json:"name,omitempty" validate:"username" `
38
38
Description string `json:"description,omitempty"`
39
39
MaxTTLMillis int64 `json:"max_ttl_ms,omitempty"`
40
40
MinAutostartIntervalMillis int64 `json:"min_autostart_interval_ms,omitempty"`
You can’t perform that action at this time.
0 commit comments