fix: Validate template version name (#6804)

* WIP

* Update

* Validation
This commit is contained in:
Marcin Tojek
2023-03-27 13:54:01 +02:00
committed by GitHub
parent e0cc4ee7f8
commit 8187992e7f
6 changed files with 105 additions and 10 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ type TemplateVersionVariable struct {
}
type PatchTemplateVersionRequest struct {
Name string `json:"name"`
Name string `json:"name" validate:"omitempty,template_version_name"`
}
// TemplateVersion returns a template version by ID.