# README
Gin 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 the Gin web server for use with deepmap/oapi-codegen.
Licensed under the Apache-2.0.
# Functions
GetGinContext gets the gin context from within requests.
No description provided by the author
OapiRequestValidator is an gin middleware function which validates incoming HTTP requests to make sure that they conform to the given OAPI 3.0 specification.
OapiRequestValidatorWithOptions creates a validator from a swagger object, with validation options.
OapiValidatorFromYamlFile creates a validator middleware from a YAML file path.
ValidateRequestFromContext is called from the middleware above and actually does the work of validating a request.
# Type aliases
ErrorHandler is called when there is an error in validation.
MultiErrorHandler is called when oapi returns a MultiError type.