engine

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL