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 ¶ added in v0.0.8
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 ¶ added in v1.5.17
func FromGlob ¶ added in v1.3.0
FromGlob creates SpecInfo specs from local files matching the specified glob parameter
func LoadSpecInfo ¶ added in v1.5.17
LoadSpecInfo creates a SpecInfo from a local file path, a URL, or stdin
func (*SpecInfo) GetVersion ¶ added in v1.9.6
type SpecInfoPair ¶ added in v1.9.6
func NewSpecInfoPair ¶ added in v1.9.6
func NewSpecInfoPair(specInfo1, specInfo2 *SpecInfo) *SpecInfoPair
func (*SpecInfoPair) GetBaseVersion ¶ added in v1.9.6
func (specInfoPair *SpecInfoPair) GetBaseVersion() string
func (*SpecInfoPair) GetRevisionVersion ¶ added in v1.9.6
func (specInfoPair *SpecInfoPair) GetRevisionVersion() string
Click to show internal directories.
Click to hide internal directories.