Documentation
¶
Overview ¶
Package engine defines how an OpenAPI library loads a document into the generator's model. libopenapi is the only engine; it lives in its own subpackage.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine interface {
Load(path string, opts LoadOptions) (*model.Document, error)
}
Engine loads the OpenAPI document at path, a file path or an http(s) URL.
type LoadOptions ¶
type LoadOptions struct {
// OverlayPath is an OpenAPI Overlay applied to the document before it is
// read. Ignored when empty.
OverlayPath string
// OverlayStrict fails the load when an Overlay action has no effect.
OverlayStrict bool
}
LoadOptions controls how a document is loaded.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package enginetest finds the documents the repository generates from, so every engine can be checked against the same set.
|
Package enginetest finds the documents the repository generates from, so every engine can be checked against the same set. |
|
Package libopenapi loads OpenAPI documents with pb33f/libopenapi and converts them into the generator's model.
|
Package libopenapi loads OpenAPI documents with pb33f/libopenapi and converts them into the generator's model. |