openapi

package
v0.0.0-...-bee5b53 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenAPI

type OpenAPI struct {
	// contains filtered or unexported fields
}

OpenAPI ...

func NewFromData

func NewFromData(data []byte) (*OpenAPI, error)

NewFromData creates openapi validation middleware

func NewFromFile

func NewFromFile(path string) (*OpenAPI, error)

NewFromFile creates openapi validation middleware

func (*OpenAPI) Middleware

func (api *OpenAPI) Middleware(next http.Handler) http.Handler

Middleware ... - ensures that requested route exists in openapi spec - validates passed parameters

Jump to

Keyboard shortcuts

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