- Notifications
You must be signed in to change notification settings - Fork927
Closed
Labels
Description
Problem statement
I'd love to be able to create templates with the following names:
- Proxmox VM
- Proxmox Container
- Standard Dev Bundle
- Bare Dev Bundle
- Ubuntu Slim
- Docker with nixOS
However, template names are currently being validated as usernames so this is not possible.
coder/codersdk/organizations.go
Line 51 in3e419dd
Namestring`json:"name" validate:"username,required"` |
coder/coderd/httpapi/httpapi.go
Line 20 inc8d04af
usernameRegex=regexp.MustCompile("^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$") |
Definition of done
Users can create templates with names that contain spaces.