type Empty struct{}
func (Empty) OpenAPISchema() (*openapi_v2.Document, error)
Fake opens and returns a openapi swagger from a file Path. It will parse only once and then return the same copy everytime.
type Fake struct { Path string // contains filtered or unexported fields }
func (f *Fake) OpenAPISchema() (*openapi_v2.Document, error)
OpenAPISchema returns the openapi document and a potential error.
type FakeV3 struct { Path string // contains filtered or unexported fields }
func (f *FakeV3) OpenAPIV3Schema(groupVersion string) (*openapi_v3.Document, error)