load

package
v0.0.0-...-f1424fc Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 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

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

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