mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: relax template name validation
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:"username,required"`
|
||||
Name string `json:"name" validate:"lt=32,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