Documentation
¶
Overview ¶
Package provider is the boundary between the generator and the library that reads OpenAPI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ParseOptions ¶
ParseOptions holds the spec's file name and where its nodes start, by JSON pointer. Positions, taken before any transform, win over positions in the parsed bytes.
type Provider ¶
type Provider interface {
ApplyOverlay(ctx context.Context, data, overlay []byte) ([]byte, []diag.Diagnostic, error)
Parse(ctx context.Context, data []byte, opts ParseOptions) (*spec.Document, []diag.Diagnostic, error)
}
Provider reads specs. Implementations never print; problems come back as diagnostics or errors.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package libopenapi implements provider.Provider and is the only importer of libopenapi.
|
Package libopenapi implements provider.Provider and is the only importer of libopenapi. |
Click to show internal directories.
Click to hide internal directories.