Skip to content

Commit 7806f3b

Browse files
committed
chore: relax template name validation
1 parent d764b3d commit 7806f3b

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:"username,required"`
51+
Name string `json:"name" validate:"lt=32,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)