Documentation
¶
Overview ¶
Package spec provides runtime loading of Swagger 2.0 and OpenAPI 3 specifications, converting Swagger 2.0 to OpenAPI 3 via openapi2conv.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectFormat ¶
DetectFormat returns "json" or "yaml" based on the file extension.
Types ¶
type FileLoader ¶
FileLoader reads specs from the filesystem, detecting Swagger 2.0 and converting to OpenAPI 3 automatically.
func NewFileLoader ¶
func NewFileLoader() *FileLoader
NewFileLoader creates a FileLoader with a stderr logger.
Click to show internal directories.
Click to hide internal directories.