Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConfigPathEmpty = errors.New("config path is empty")
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.3.0
type Config struct {
Tool ToolConfig `mapstructure:"x-openapi-filter"`
FilterConfig `mapstructure:",squash"`
}
func LoadConfig ¶
type FilterComponentsConfig ¶
type FilterComponentsConfig struct {
Schemas []string `mapstructure:"schemas"`
Parameters []string `mapstructure:"parameters"`
SecuritySchemes []string `mapstructure:"securitySchemes"`
RequestBodies []string `mapstructure:"requestBodies"`
Responses []string `mapstructure:"responses"`
Headers []string `mapstructure:"headers"`
Examples []string `mapstructure:"examples"`
Links []string `mapstructure:"links"`
Callbacks []string `mapstructure:"callbacks"`
}
type FilterConfig ¶
type LoaderConfig ¶ added in v0.3.0
type LoaderConfig struct {
IsExternalRefsAllowed bool `mapstructure:"external_refs_allowed"`
}
type LoggerConfig ¶
type LoggerConfig struct {
Level string `mapstructure:"level"`
}
type ToolConfig ¶
type ToolConfig struct {
Logger *LoggerConfig `mapstructure:"logger"`
Loader *LoaderConfig `mapstructure:"loader"`
}
Click to show internal directories.
Click to hide internal directories.