Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReqResValidator ¶
type ReqResValidator struct {
// contains filtered or unexported fields
}
func New ¶
func New(oapi []byte, logger *slog.Logger) (*ReqResValidator, error)
oapi - OpenAPI document from file
func (*ReqResValidator) ValidateRequest ¶
func (r *ReqResValidator) ValidateRequest(req *http.Request) (bool, []*errors.ValidationError)
func (*ReqResValidator) ValidateResponse ¶
func (r *ReqResValidator) ValidateResponse(req *http.Request, res *http.Response) (bool, []*errors.ValidationError)
Click to show internal directories.
Click to hide internal directories.