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() *Validator
func (*Validator) ValidateRequest ¶
func (v *Validator) ValidateRequest(req *http.Request, routeMatch *RouteMatch) error
Click to show internal directories.
Click to hide internal directories.