Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Fake ¶
type Fake struct { Path string // contains filtered or unexported fields }
Fake opens and returns a openapi swagger from a file Path. It will parse only once and then return the same copy everytime.
func (*Fake) OpenAPISchema ¶
func (f *Fake) OpenAPISchema() (*openapi_v2.Document, error)
OpenAPISchema returns the openapi document and a potential error.
type OpenAPIV3Getter ¶ added in v0.29.0
type OpenAPIV3Getter struct { Path string // contains filtered or unexported fields }
func (*OpenAPIV3Getter) SchemaBytesOrDie ¶ added in v0.29.0
func (f *OpenAPIV3Getter) SchemaBytesOrDie() []byte
func (*OpenAPIV3Getter) SchemaOrDie ¶ added in v0.29.0
func (f *OpenAPIV3Getter) SchemaOrDie() *spec3.OpenAPI
Click to show internal directories.
Click to hide internal directories.