Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestValidator ¶
func RequestValidator(router *openapi3filter.Router, validationErrHook func(w http.ResponseWriter, r *http.Request, err error)) func(next http.Handler) http.Handler
RequestValidator returns a http middleware that validates request.
Types ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator describes openapi3 schema validator.
func NewValidatorFromPath ¶
NewValidatorFromPath returns a new Validator from spec path.
func NewValidatorFromSwagger ¶
NewValidatorFromSwagger returns a new Validator from Swagger.
Click to show internal directories.
Click to hide internal directories.