Versions in this module Expand all Collapse all v0 v0.1.0 Jun 17, 2026 Changes in this version + const ALL + const DotJSON + const DotYAML + const JSON + const YAML + func CreateNormalizedOpenAPISpecFromPath(path string) (*load.SpecInfo, error) + func ExtractVersionsWithEnv(oas *openapi3.T, env string) ([]string, error) + func NewArrayBytesFromOAS(oas *Spec, path, format string) ([]byte, error) + func Save(path string, oas *openapi3.T, format string, fs afero.Fs) error + func SaveToFile[T any](path, format string, content T, fs afero.Fs) error + func SerializeToJSON[T any](data T) ([]byte, error) + func SerializeToYAML(data []byte) ([]byte, error) + func ValidateFormatAndOutput(format, output string) error + type ByName []*openapi3.Tag + func (a ByName) Len() int + func (a ByName) Less(i, j int) bool + func (a ByName) Swap(i, j int) + type Differ interface + Get func(config *diff.Config, base, revision *openapi3.T) (*diff.Diff, error) + GetWithOperationsSourcesMap func(config *diff.Config, base, revision *load.SpecInfo) (*diff.Diff, *diff.OperationsSourcesMap, error) + func NewResultGetter() Differ + type Merger interface + MergeOpenAPISpecs func([]string) (*Spec, error) + type MockDiffGetter struct + func NewMockDiffGetter(ctrl *gomock.Controller) *MockDiffGetter + func (m *MockDiffGetter) EXPECT() *MockDiffGetterMockRecorder + func (m *MockDiffGetter) Get(arg0 *diff.Config, arg1, arg2 *openapi3.T) (*diff.Diff, error) + func (m *MockDiffGetter) GetWithOperationsSourcesMap(arg0 *diff.Config, arg1, arg2 *load.SpecInfo) (*diff.Diff, *diff.OperationsSourcesMap, error) + type MockDiffGetterMockRecorder struct + func (mr *MockDiffGetterMockRecorder) Get(arg0, arg1, arg2 any) *gomock.Call + func (mr *MockDiffGetterMockRecorder) GetWithOperationsSourcesMap(arg0, arg1, arg2 any) *gomock.Call + type MockMerger struct + func NewMockMerger(ctrl *gomock.Controller) *MockMerger + func (m *MockMerger) EXPECT() *MockMergerMockRecorder + func (m *MockMerger) MergeOpenAPISpecs(arg0 []string) (*Spec, error) + type MockMergerMockRecorder struct + func (mr *MockMergerMockRecorder) MergeOpenAPISpecs(arg0 any) *gomock.Call + type MockParser struct + func NewMockParser(ctrl *gomock.Controller) *MockParser + func (m *MockParser) CreateOpenAPISpecFromPath(arg0 string) (*load.SpecInfo, error) + func (m *MockParser) EXPECT() *MockParserMockRecorder + type MockParserMockRecorder struct + func (mr *MockParserMockRecorder) CreateOpenAPISpecFromPath(arg0 any) *gomock.Call + type OasDiff struct + func NewOasDiff(base string, excludePrivatePaths bool) (*OasDiff, error) + func NewOasDiffWithSpecInfo(base, external *load.SpecInfo, config *diff.Config) *OasDiff + func (o *OasDiff) GetDiffWithConfig(base, revision *load.SpecInfo, config *diff.Config) (*OasDiffResult, error) + func (o *OasDiff) GetFlattenedDiff(base, revision *load.SpecInfo) (*OasDiffResult, error) + func (o *OasDiff) GetSimpleDiff(base, revision *load.SpecInfo) (*OasDiffResult, error) + func (o *OasDiff) MergeOpenAPISpecs(paths []string) (*Spec, error) + type OasDiffResult struct + Config *diff.Config + Report *diff.Diff + SourceMap *diff.OperationsSourcesMap + SpecInfoPair *load.SpecInfoPair + type OpenAPI3 struct + CircularReferenceCounter int + ExcludePrivatePaths bool + IsExternalRefsAllowed bool + Loader *openapi3.Loader + func NewOpenAPI3() *OpenAPI3 + func (o *OpenAPI3) CreateOpenAPISpecFromPath(path string) (*load.SpecInfo, error) + func (o *OpenAPI3) WithExcludedPrivatePaths() *OpenAPI3 + type Parser interface + CreateOpenAPISpecFromPath func(string) (*load.SpecInfo, error) + type ResultGetter struct + func (ResultGetter) Get(config *diff.Config, base, revision *openapi3.T) (*diff.Diff, error) + func (ResultGetter) GetWithOperationsSourcesMap(config *diff.Config, base, revision *load.SpecInfo) (*diff.Diff, *diff.OperationsSourcesMap, error) + type Spec struct + Components *openapi3.Components + Extensions map[string]any + ExternalDocs *openapi3.ExternalDocs + Info *openapi3.Info + OpenAPI string + Paths *openapi3.Paths + Security openapi3.SecurityRequirements + Servers openapi3.Servers + Tags openapi3.Tags + func (doc *Spec) MarshalJSON() ([]byte, error) + func (doc *Spec) MarshalYAML() (any, error)