Versions in this module Expand all Collapse all v0 v0.24.0 Mar 28, 2022 Changes in this version + func AddLoader(predicate DocMatcher, load DocLoader) + func JSONDoc(path string) (json.RawMessage, error) + type DocLoader func(string) (json.RawMessage, error) + type DocLoaderWithMatch struct + Fn DocLoader + Match DocMatcher + func NewDocLoaderWithMatch(fn DocLoader, matcher DocMatcher) DocLoaderWithMatch + type DocMatcher func(string) bool + type Document struct + Analyzer *analysis.Spec + func Analyzed(data json.RawMessage, version string, options ...LoaderOption) (*Document, error) + func Embedded(orig, flat json.RawMessage, options ...LoaderOption) (*Document, error) + func JSONSpec(path string, options ...LoaderOption) (*Document, error) + func Spec(path string, options ...LoaderOption) (*Document, error) + func (d *Document) BasePath() string + func (d *Document) Expanded(options ...*spec.ExpandOptions) (*Document, error) + func (d *Document) Host() string + func (d *Document) OrigSpec() *spec.Swagger + func (d *Document) Pristine() *Document + func (d *Document) Raw() json.RawMessage + func (d *Document) ResetDefinitions() *Document + func (d *Document) Schema() *spec.Schema + func (d *Document) Spec() *spec.Swagger + func (d *Document) SpecFilePath() string + func (d *Document) Version() string + type LoaderOption func(*options) + func WithDocLoader(l DocLoader) LoaderOption + func WithDocLoaderMatches(l ...DocLoaderWithMatch) LoaderOption