Versions in this module Expand all Collapse all v1 v1.7.8 May 11, 2026 Changes in this version + var ErrInvalidSchemaName = errors.New("invalid schema name") + type Policy string + const PolicyDrop + const PolicyIgnore + type RequestValidator struct + func NewRequestValidator(logger *log.Entry) *RequestValidator + func (rv *RequestValidator) LoadSchema(ref string, schema string, opts *SchemaOptions) error + func (rv *RequestValidator) RegisterBodyDecoder(contentType, decoderName string) error + func (rv *RequestValidator) ValidateRequest(ctx context.Context, ref string, r *http.Request) error + type SchemaData struct + Options SchemaOptions + Router routers.Router + Schema *openapi3.T + type SchemaOptions struct + OnMethodNotAllowed Policy + OnRouteNotFound Policy + OnUnsupportedSecurityScheme Policy + type ValidationError struct + Expected string + Field string + Message string + OriginalError error + Reason string + SchemaPath string + Value string + func (ve *ValidationError) Error() string v1.7.8-rc1 May 5, 2026