Categorygithub.com/oapi-codegen/nethttp-middleware
modulepackage
1.0.2
Repository: https://github.com/oapi-codegen/nethttp-middleware.git
Documentation: pkg.go.dev

# README

net/http Middleware

⚠️ This README may be for the latest development version, which may contain unreleased changes. Please ensure you're looking at the README for the latest release version.

Middleware for servers that implement net/http handlers, for use with deepmap/oapi-codegen, which has been tested to work with:

But if you're using something that's compliant with net/http it should work as-is.

Licensed under the Apache-2.0.

# Functions

OapiRequestValidator Creates middleware to validate request by swagger spec.
OapiRequestValidatorWithOptions Creates middleware to validate request by swagger spec.

# Structs

Options to customize request validation, openapi3filter specified options will be passed through.

# Type aliases

ErrorHandler is called when there is an error in validation.
MultiErrorHandler is called when oapi returns a MultiError type.