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 `koanf:"x-openapi-filter"`
FilterConfig `koanf:",squash"`
}
func LoadConfig ¶
type FilterComponentsConfig ¶
type FilterComponentsConfig struct {
Schemas []string `koanf:"schemas"`
Parameters []string `koanf:"parameters"`
SecuritySchemes []string `koanf:"securitySchemes"`
RequestBodies []string `koanf:"requestBodies"`
Responses []string `koanf:"responses"`
Headers []string `koanf:"headers"`
Examples []string `koanf:"examples"`
Links []string `koanf:"links"`
Callbacks []string `koanf:"callbacks"`
}
type FilterConfig ¶
type LoaderConfig ¶ added in v0.3.0
type LoaderConfig struct {
IsExternalRefsAllowed bool `koanf:"external_refs_allowed"`
}
type LoggerConfig ¶
type LoggerConfig struct {
Level string `koanf:"level"`
}
type ToolConfig ¶
type ToolConfig struct {
Logger *LoggerConfig `koanf:"logger"`
Loader *LoaderConfig `koanf:"loader"`
}
Click to show internal directories.
Click to hide internal directories.