mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
Revert "chore: relax template name validation"
This reverts commit 7806f3bebe
.
This commit is contained in:
@ -48,7 +48,7 @@ type CreateTemplateVersionRequest struct {
|
||||
// CreateTemplateRequest provides options when creating a template.
|
||||
type CreateTemplateRequest struct {
|
||||
// Name is the name of the template.
|
||||
Name string `json:"name" validate:"lt=32,required"`
|
||||
Name string `json:"name" validate:"username,required"`
|
||||
// Description is a description of what the template contains. It must be
|
||||
// less than 128 bytes.
|
||||
Description string `json:"description,omitempty" validate:"lt=128"`
|
||||
|
Reference in New Issue
Block a user