load

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package load provides a function to load an OpenAPI spec from a URL or a Path

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func From added in v0.2.5

func From(loader Loader, path string) (*openapi3.T, error)

From is a convenience function that opens an OpenAPI spec from a URL or a local path based on the format of the path parameter

Types

type Loader added in v0.0.8

type Loader interface {
	LoadFromURI(*url.URL) (*openapi3.T, error)
	LoadFromFile(string) (*openapi3.T, error)
}

Loader interface includes the OAS load functions

Jump to

Keyboard shortcuts

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