Versions in this module Expand all Collapse all v1 v1.0.2 Oct 9, 2026 v1.0.1 Oct 9, 2026 v1.0.0 Oct 9, 2026 Changes in this version + var ErrByteSize = errors.New("invalid byte size") + var ErrDecode = errors.New("decode config") + var ErrDuration = errors.New("invalid duration") + var ErrInvalid = errors.New("invalid config") + var ErrRead = errors.New("read config") + var ErrUnknownKey = errors.New("unknown config key") + func Schema() ([]byte, error) + type ByteSize int64 + func (s *ByteSize) UnmarshalText(text []byte) error + type Client struct + Name string + Streaming bool + Timeout *Duration + WithResponse bool + type Config struct + Client *Client + ExtraFiles map[string]Template + Header string + Imports []Import + MCP *MCP + Models *Models + Naming Naming + Output Output + Package string + Server *Server + Spec Spec + Templates map[string]Template + UserContext map[string]any + func Load(path string, edits ...func(*Config)) (*Config, error) + func Parse(data []byte, dir string, edits ...func(*Config)) (*Config, error) + func (c *Config) Resolve(p string) string + func (c *Config) Validate() error + type Duration time.Duration + func (d *Duration) UnmarshalText(text []byte) error + type Filter struct + Exclude FilterSet + Include FilterSet + type FilterSet struct + Extensions []string + OperationIDs []string + Paths []string + SchemaProperties map[string][]string + Tags []string + Webhooks []string + type GoType struct + Import string + Type string + type Import struct + Alias string + Package string + func (imp Import) Name() string + type Issue struct + Key string + Message string + type MCP struct + DefaultSkip bool + type ModelValidation struct + Response bool + Skip bool + type Models struct + Descriptions *bool + ErrorMapping map[string]string + ExtraTags []string + FormatTypes map[string]GoType + IntType string + Nullable bool + Validation ModelValidation + type Naming struct + EnumPrefix *bool + Initialisms []string + type OptionalProperties struct + Max int + Min int + Seed int64 + type Output struct + File string + Files map[string][]string + Format *bool + Module string + Packages map[string]string + type Scaffold struct + Main string + Middleware string + Overwrite bool + Port int + Service string + Timeout Duration + type Server struct + Framework string + MultipartMaxMemory ByteSize + Name string + Scaffold Scaffold + Validation ServerValidation + type ServerValidation struct + Request bool + Response bool + type Simplify struct + OptionalProperties *OptionalProperties + Unions bool + type Spec struct + Filter Filter + Overlays []string + Path string + Prune *bool + Simplify *Simplify + type Template struct + File string + Text string + func (t *Template) UnmarshalYAML(n *yaml.Node) error + type UnknownKeyError struct + Keys []string + func (e *UnknownKeyError) Error() string + func (e *UnknownKeyError) Unwrap() error + type ValidationError struct + Issues []Issue + func (e *ValidationError) Error() string + func (e *ValidationError) Unwrap() error