Skip to content

Commit

Permalink
fix: platform settings yaml tags (#1129)
Browse files Browse the repository at this point in the history
  • Loading branch information
plyr4 committed May 13, 2024
1 parent 9357113 commit 927dc71
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions api/types/settings/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
14 changes: 7 additions & 7 deletions api/types/settings/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion api/types/settings/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 927dc71

Please sign in to comment.