Skip to content

Add a display name to template settings #3321

Closed
@bpmct

Description

@bpmct

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.

Name string `json:"name" validate:"username,required"`

usernameRegex = regexp.MustCompile("^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$")

Definition of done

Users can create templates with names that contain spaces.

Metadata

Metadata

Assignees

Labels

apiArea: HTTP API

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions