Versions in this module Expand all Collapse all v1 v1.0.1 Dec 31, 2025 v1.0.0 Dec 31, 2025 Changes in this version + func DefaultErrorEncoder(w http.ResponseWriter, r *http.Request, err error) + type ErrorEncoder func(w http.ResponseWriter, r *http.Request, err error) + type Option func(*Options) + func WithErrorEncoder(encoder ErrorEncoder) Option + func WithRouter(router routers.Router) Option + func WithSwaggerUIPath(path string) Option + func WithValidateRequests(validate bool) Option + func WithValidateResponses(validate bool) Option + type Options struct + ErrorEncoder ErrorEncoder + Router routers.Router + SwaggerUIPath string + ValidateRequests bool + ValidateResponses bool + func DefaultOptions() *Options + type Registrar interface + HandleFunc func(pattern string, handler func(http.ResponseWriter, *http.Request)) + type ValidationError struct + Errors []string + Message string + func (e *ValidationError) Error() string + type Validator struct + Options *Options + Swagger *openapi3.T + func New(specPath string, opts ...Option) (*Validator, error) + func (v *Validator) HandleSwaggerUI(mux Registrar) + func (v *Validator) Middleware(next http.Handler) http.Handler + func (v *Validator) SwaggerUIHandler() http.Handler