Documentation
¶
Index ¶
Constants ¶
View Source
const ( LevelErr = "ERR" LevelWarn = "WARN" LevelInfo = "INFO" )
View Source
const EnvConfigPath = "OASDIFF_CONFIG"
EnvConfigPath is the environment variable that overrides the default config-file lookup. Lower precedence than the --config flag.
Variables ¶
This section is empty.
Functions ¶
func GetBreakingLevels ¶
func GetBreakingLevels() []string
func GetSupportedLevels ¶
func GetSupportedLevels() []string
func GetSupportedLevelsLower ¶
func GetSupportedLevelsLower() []string
Types ¶
type Config ¶
type Config struct {
Attributes []string `mapstructure:"attributes"`
Composed bool `mapstructure:"composed"`
FlattenAllof bool `mapstructure:"flatten-allof"`
FlattenParams bool `mapstructure:"flatten-params"`
CaseInsensitiveHeaders bool `mapstructure:"case-insensitive-headers"`
DeprecationDaysBeta uint `mapstructure:"deprecation-days-beta"`
DeprecationDaysStable uint `mapstructure:"deprecation-days-stable"`
Lang string `mapstructure:"lang"`
Color string `mapstructure:"color"`
WarnIgnore string `mapstructure:"warn-ignore"`
ErrIgnore string `mapstructure:"err-ignore"`
Format string `mapstructure:"format"`
FailOn string `mapstructure:"fail-on"`
Level string `mapstructure:"level"`
FailOnDiff bool `mapstructure:"fail-on-diff"`
SeverityLevels string `mapstructure:"severity-levels"`
ExcludeElements []string `mapstructure:"exclude-elements"`
ExcludeExtensions []string `mapstructure:"exclude-extensions"`
Severity []string `mapstructure:"severity"`
Tags []string `mapstructure:"tags"`
MatchPath string `mapstructure:"match-path"`
UnmatchPath string `mapstructure:"unmatch-path"`
FilterExtension string `mapstructure:"filter-extension"`
PrefixBase string `mapstructure:"prefix-base"`
PrefixRevision string `mapstructure:"prefix-revision"`
StripPrefixBase string `mapstructure:"strip-prefix-base"`
StripPrefixRevision string `mapstructure:"strip-prefix-revision"`
IncludePathParams bool `mapstructure:"include-path-params"`
MatchInlineRefs bool `mapstructure:"match-inline-refs"`
AllowExternalRefs bool `mapstructure:"allow-external-refs"`
AutoUpgrade bool `mapstructure:"auto-upgrade"`
Fetch bool `mapstructure:"fetch"`
Template string `mapstructure:"template"`
}
type IViper ¶
type IViper interface {
SetConfigName(in string)
SetConfigFile(in string)
AddConfigPath(in string)
ReadInConfig() error
ConfigFileUsed() string
GetString(key string) string
Set(key string, value any)
BindPFlag(key string, flag *pflag.Flag) error
UnmarshalExact(rawVal any, opts ...viper.DecoderConfigOption) error
}
type ReturnError ¶
type ReturnError struct {
Code int
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.