Versions in this module Expand all Collapse all v1 v1.11.6 Jul 9, 2025 Changes in this version + type Loader interface + LoadFromFile func(string) (*openapi3.T, error) + LoadFromStdin func() (*openapi3.T, error) + LoadFromURI func(*url.URL) (*openapi3.T, error) + type Option func(Loader, []*SpecInfo) ([]*SpecInfo, error) + func GetOption(option Option, enable bool) Option + func WithFlattenAllOf() Option + func WithFlattenParams() Option + func WithIdentity() Option + func WithLowercaseHeaders() Option + type Source struct + Path string + Type SourceType + Uri *url.URL + func NewSource(path string) *Source + func (source *Source) IsFile() bool + func (source *Source) IsStdin() bool + func (source *Source) Out() string + func (source *Source) String() string + type SourceType int + const SourceTypeFile + const SourceTypeStdin + const SourceTypeURL + type SpecInfo struct + Spec *openapi3.T + Url string + Version string + func NewSpecInfo(loader Loader, source *Source, options ...Option) (*SpecInfo, error) + func NewSpecInfoFromGlob(loader Loader, glob string, options ...Option) ([]*SpecInfo, error) + func (specInfo *SpecInfo) GetVersion() string + type SpecInfoPair struct + Base *SpecInfo + Revision *SpecInfo + func NewSpecInfoPair(specInfo1, specInfo2 *SpecInfo) *SpecInfoPair + func (specInfoPair *SpecInfoPair) GetBaseVersion() string + func (specInfoPair *SpecInfoPair) GetRevisionVersion() string