-
Notifications
You must be signed in to change notification settings - Fork 32
Closed
Description
I use fig to initialize a map of structs.
The fields in the struct have a "required" validation tag. However, fig does not enforce this validation.
E.g.
type Config struct {
Elements map[string]Element fig:"chartConfigs" validate:"required"
}
type Element struct {
Name string fig:"name" validate:"required"
}
var cfg Config
fig.Load(&cfg)
Metadata
Metadata
Assignees
Labels
No labels