Documentation
¶
Overview ¶
Package config handles daco project configuration.
Index ¶
Constants ¶
const CurrentConfigVersion = 1
CurrentConfigVersion is the current version of the config file format.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Version int `yaml:"version"`
Extends string `yaml:"extends,omitempty"`
Path string `yaml:"path,omitempty"`
Schema SchemaConfig `yaml:"schema,omitempty"`
}
Config represents the daco.yaml project configuration file.
func Load ¶
Load reads a Config from a file path and resolves the extends chain. It returns a fully resolved config with all inherited values.
func (*Config) Validate ¶
Validate checks the configuration for required fields and valid values. For configs with extends, validation is relaxed as values may come from parent.
func (*Config) ValidateResolved ¶
ValidateResolved checks a fully resolved config (after inheritance).
type SchemaConfig ¶
type SchemaConfig struct {
Organization SchemaOrganization `yaml:"organization,omitempty"`
}
SchemaConfig contains schema-related settings.
type SchemaOrganization ¶
type SchemaOrganization string
SchemaOrganization defines how schemas are organized in the spec.
const ( // SchemaModular stores schemas in separate files under spec/schemas/. SchemaModular SchemaOrganization = "modular" // SchemaComponents stores schemas in components.schemas section. SchemaComponents SchemaOrganization = "components" // SchemaInline stores schemas directly in the port definition. SchemaInline SchemaOrganization = "inline" )