Revert "chore: relax template name validation"

This reverts commit 7806f3bebe.
This commit is contained in:
Ben Potter
2022-07-30 22:34:59 +00:00
parent beed6c7222
commit 52041becf7

View File

@ -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"`