Skip to content

Commit

Permalink
remove yaml tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mkideal committed Aug 12, 2024
1 parent 57c619e commit 1640cb9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions component/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,25 @@ type Config struct {
Name string

// UUID is the unique identifier for the component. It can be empty.
UUID string `json:",omitempty" toml:",omitempty" yaml:",omitempty"`
UUID string `json:",omitempty" toml:",omitempty"`

// Refs is the references to other components.
Refs types.RawObject `json:",omitempty" toml:",omitempty" yaml:",omitempty"`
Refs types.RawObject `json:",omitempty" toml:",omitempty"`

// Options is the configuration options for the component.
Options types.RawObject `json:",omitempty" toml:",omitempty" yaml:",omitempty"`
Options types.RawObject `json:",omitempty" toml:",omitempty"`

// TemplateUUID determines if the UUID should be templated.
// If not set, the default value is determined by the service.
TemplateUUID *types.Bool `json:",omitempty" toml:",omitempty" yaml:",omitempty"`
TemplateUUID *types.Bool `json:",omitempty" toml:",omitempty"`

// TemplateRefs determines if the Refs should be templated.
// If not set, the default value is determined by the service.
TemplateRefs *types.Bool `json:",omitempty" toml:",omitempty" yaml:",omitempty"`
TemplateRefs *types.Bool `json:",omitempty" toml:",omitempty"`

// TemplateOptions determines if the Options should be templated.
// If not set, the default value is determined by the service.
TemplateOptions *types.Bool `json:",omitempty" toml:",omitempty" yaml:",omitempty"`
TemplateOptions *types.Bool `json:",omitempty" toml:",omitempty"`
}

// Component defines the interface for a generic logic component.
Expand Down
4 changes: 2 additions & 2 deletions service/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
// Config represents a generic configuration structure for services.
// It includes a context of type T and a list of component configurations.
type Config[T any] struct {
Context T `json:",omitempty" toml:",omitempty" yaml:",omitempty"`
Components []component.Config `json:",omitempty" toml:",omitempty" yaml:",omitempty"`
Context T `json:",omitempty" toml:",omitempty"`
Components []component.Config `json:",omitempty" toml:",omitempty"`
}

// load processes the configuration based on the provided source.
Expand Down

0 comments on commit 1640cb9

Please sign in to comment.