Skip to content

Commit 52041be

Browse files
committed
Revert "chore: relax template name validation"
This reverts commit 7806f3b.
1 parent beed6c7 commit 52041be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codersdk/organizations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ type CreateTemplateVersionRequest struct {
4848
// CreateTemplateRequest provides options when creating a template.
4949
type CreateTemplateRequest struct {
5050
// Name is the name of the template.
51-
Name string `json:"name" validate:"lt=32,required"`
51+
Name string `json:"name" validate:"username,required"`
5252
// Description is a description of what the template contains. It must be
5353
// less than 128 bytes.
5454
Description string `json:"description,omitempty" validate:"lt=128"`

0 commit comments

Comments
 (0)