load

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader added in v0.0.8

type Loader interface {
	LoadSwaggerFromURI(*url.URL) (*openapi3.Swagger, error)
	LoadSwaggerFromFile(string) (*openapi3.Swagger, error)
}

type SwaggerLoader added in v0.0.8

type SwaggerLoader struct {
	Loader Loader
}

func NewSwaggerLoader added in v0.0.8

func NewSwaggerLoader() *SwaggerLoader

NewSwaggerLoader returns a loader object that can be used to load swagger specs

func (*SwaggerLoader) From added in v0.0.8

func (swaggerLoader *SwaggerLoader) From(path string) (*openapi3.Swagger, error)

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

func (*SwaggerLoader) FromPath added in v0.0.8

func (swaggerLoader *SwaggerLoader) FromPath(path string) (*openapi3.Swagger, error)

FromPath opens a swagger spec from a local path

func (*SwaggerLoader) FromURI added in v0.0.8

func (swaggerLoader *SwaggerLoader) FromURI(path *url.URL) (*openapi3.Swagger, error)

FromURI opens a swagger spec from a URL

Jump to

Keyboard shortcuts

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