Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client fetches spec files from HTTP(S) URLs.
type Config ¶
type Config struct {
// Path or URL to the OpenAPI/gRPC spec file. Supports globs for local files.
Source string `json:"source" yaml:"source" mapstructure:"source" validate:"required"`
// Format: "openapi" or "protobuf" (auto-detected from file extension if omitted).
Format string `json:"format" yaml:"format" mapstructure:"format" validate:"omitempty,oneof=openapi protobuf"`
// Service name override (defaults to info.title for OpenAPI or package name for proto).
Service string `json:"service" yaml:"service" mapstructure:"service"`
}
Config holds the extractor configuration.
Click to show internal directories.
Click to hide internal directories.