Versions in this module Expand all Collapse all v2 v2.1.0 May 2, 2026 v2.0.1 Feb 2, 2026 Changes in this version + type ErrorHandler func(http.ResponseWriter, *http.Request, int, error) + type Middleware struct + func New(spec *openapi3.T, opts ...Option) (*Middleware, error) + func NewFromFile(path string, opts ...Option) (*Middleware, error) + func (m *Middleware) Handler(next http.Handler) http.Handler + func (m *Middleware) Middleware() func(http.Handler) http.Handler + type Option func(*Options) + func WithErrorHandler(fn ErrorHandler) Option + func WithFilterOptions(opts openapi3filter.Options) Option + func WithIgnoreNotFound(ignore bool) Option + func WithResponseValidation(opts ResponseValidationOptions) Option + func WithSpec(spec *openapi3.T) Option + type Options struct + ErrorHandler ErrorHandler + FilterOptions openapi3filter.Options + IgnoreNotFound bool + ResponseValidation ResponseValidationOptions + Spec *openapi3.T + type ResponseValidationOptions struct + Enabled bool + ErrorHandler ErrorHandler + MaxBodyBytes int64