Documentation ¶
Overview ¶
Package load provides a function to load an OpenAPI spec from a URL or a Path.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Loader ¶
type Loader interface { LoadFromURI(*url.URL) (*openapi3.T, error) LoadFromFile(string) (*openapi3.T, error) LoadFromStdin() (*openapi3.T, error) }
Loader interface includes the OAS load functions
type SpecInfo ¶
func FromGlob ¶
FromGlob creates SpecInfo specs from local files matching the specified glob parameter
func LoadSpecInfo ¶
LoadSpecInfo creates a SpecInfo from a local file path, a URL, or stdin
func (*SpecInfo) GetVersion ¶
type SpecInfoPair ¶
func NewSpecInfoPair ¶
func NewSpecInfoPair(specInfo1, specInfo2 *SpecInfo) *SpecInfoPair
func (*SpecInfoPair) GetBaseVersion ¶
func (specInfoPair *SpecInfoPair) GetBaseVersion() string
func (*SpecInfoPair) GetRevisionVersion ¶
func (specInfoPair *SpecInfoPair) GetRevisionVersion() string
Click to show internal directories.
Click to hide internal directories.