fix(site): fix template schedule update overriding other settings (#13114)

This commit is contained in:
Bruno Quaresma
2024-05-01 10:25:40 -03:00
committed by GitHub
parent f2dd0a8e5d
commit 71a03a8b1d
7 changed files with 123 additions and 111 deletions

View File

@ -232,7 +232,7 @@ type UpdateTemplateMeta struct {
// RequireActiveVersion mandates workspaces built using this template
// use the active version of the template. This option has no
// effect on template admins.
RequireActiveVersion bool `json:"require_active_version"`
RequireActiveVersion bool `json:"require_active_version,omitempty"`
// DeprecationMessage if set, will mark the template as deprecated and block
// any new workspaces from using this template.
// If passed an empty string, will remove the deprecated message, making