Skip to content

Commit

Permalink
Introduce a new setting for early validation (#1353)
Browse files Browse the repository at this point in the history
Adds `validation.earlyValidation` as a new setting.

I chose to use `validation` as a primary key as we expect to add future settings for this feature.
  • Loading branch information
jpogran authored and dbanck committed Aug 31, 2023
1 parent d730e72 commit 8f2cf11
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/settings/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ type ExperimentalFeatures struct {
PrefillRequiredFields bool `mapstructure:"prefillRequiredFields"`
}

type ValidationOptions struct {
EarlyValidation bool `mapstructure:"earlyValidation"`
}

type Indexing struct {
IgnoreDirectoryNames []string `mapstructure:"ignoreDirectoryNames"`
IgnorePaths []string `mapstructure:"ignorePaths"`
Expand All @@ -36,6 +40,8 @@ type Options struct {
// ExperimentalFeatures encapsulates experimental features users can opt into.
ExperimentalFeatures ExperimentalFeatures `mapstructure:"experimentalFeatures"`

Validation ValidationOptions `mapstructure:"validation"`

IgnoreSingleFileWarning bool `mapstructure:"ignoreSingleFileWarning"`

Terraform Terraform `mapstructure:"terraform"`
Expand Down

0 comments on commit 8f2cf11

Please sign in to comment.