middleware

package
v0.0.0-...-b9d0bc2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidationMiddleware

func ValidationMiddleware(spec *openapi3.Swagger, opts *Options) func(http.Handler) http.Handler

ValidationMiddleware middleware that validates request and responses bodies, statuses and authentication credentials.

Types

type Options

type Options struct {
	openapi3filter.Options

	ValidateResponse bool
}

Jump to

Keyboard shortcuts

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