From 927dc715e59f0e14704b0a04117c3d04fb656d68 Mon Sep 17 00:00:00 2001 From: dave vader <48764154+plyr4@users.noreply.github.com> Date: Mon, 13 May 2024 16:39:26 -0500 Subject: [PATCH] fix: platform settings yaml tags (#1129) --- api/types/settings/compiler.go | 6 +++--- api/types/settings/platform.go | 14 +++++++------- api/types/settings/queue.go | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/api/types/settings/compiler.go b/api/types/settings/compiler.go index a18a31401..147cade94 100644 --- a/api/types/settings/compiler.go +++ b/api/types/settings/compiler.go @@ -5,9 +5,9 @@ package settings import "fmt" type Compiler struct { - CloneImage *string `json:"clone_image,omitempty"` - TemplateDepth *int `json:"template_depth,omitempty"` - StarlarkExecLimit *uint64 `json:"starlark_exec_limit,omitempty"` + CloneImage *string `json:"clone_image,omitempty" yaml:"clone_image,omitempty"` + TemplateDepth *int `json:"template_depth,omitempty" yaml:"template_depth,omitempty"` + StarlarkExecLimit *uint64 `json:"starlark_exec_limit,omitempty" yaml:"starlark_exec_limit,omitempty"` } // GetCloneImage returns the CloneImage field. diff --git a/api/types/settings/platform.go b/api/types/settings/platform.go index f72698b66..b494c8faa 100644 --- a/api/types/settings/platform.go +++ b/api/types/settings/platform.go @@ -11,13 +11,13 @@ import ( // swagger:model Platform type Platform struct { ID *int64 `json:"id"` - *Queue `json:"queue"` - *Compiler `json:"compiler"` - RepoAllowlist *[]string `json:"repo_allowlist"` - ScheduleAllowlist *[]string `json:"schedule_allowlist"` - CreatedAt *int64 `json:"created_at,omitempty"` - UpdatedAt *int64 `json:"updated_at,omitempty"` - UpdatedBy *string `json:"updated_by,omitempty"` + *Compiler `json:"compiler,omitempty" yaml:"compiler,omitempty"` + *Queue `json:"queue,omitempty" yaml:"queue,omitempty"` + RepoAllowlist *[]string `json:"repo_allowlist,omitempty" yaml:"repo_allowlist,omitempty"` + ScheduleAllowlist *[]string `json:"schedule_allowlist,omitempty" yaml:"schedule_allowlist,omitempty"` + CreatedAt *int64 `json:"created_at,omitempty" yaml:"created_at,omitempty"` + UpdatedAt *int64 `json:"updated_at,omitempty" yaml:"updated_at,omitempty"` + UpdatedBy *string `json:"updated_by,omitempty" yaml:"updated_by,omitempty"` } // GetID returns the ID field. diff --git a/api/types/settings/queue.go b/api/types/settings/queue.go index 9bf54dfd1..e813b18ae 100644 --- a/api/types/settings/queue.go +++ b/api/types/settings/queue.go @@ -5,7 +5,7 @@ package settings import "fmt" type Queue struct { - Routes *[]string `json:"routes,omitempty"` + Routes *[]string `json:"routes,omitempty" yaml:"routes,omitempty"` } // GetRoutes returns the Routes field.