Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsOpenAPISpec ¶
IsOpenAPISpec checks whether a given file path or URL content resembles an OpenAPI specification (v3 or v2/swagger).
Types ¶
type RouteMatch ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func NewValidator ¶
func NewValidator(opts ...ValidatorOption) *Validator
func (*Validator) ValidateRequest ¶
func (v *Validator) ValidateRequest(req *http.Request, routeMatch *RouteMatch) error
type ValidatorOption ¶ added in v0.29.1
type ValidatorOption func(*Validator)
func WithAuthenticationFunc ¶ added in v0.29.1
func WithAuthenticationFunc(fn openapi3filter.AuthenticationFunc) ValidatorOption
WithAuthenticationFunc configures a custom AuthenticationFunc for OpenAPI request validation.
Click to show internal directories.
Click to hide internal directories.