Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("operation for method/path not found")
ErrNotFound -
Functions ¶
This section is empty.
Types ¶
type Matcher ¶
Matcher exposes a path comparison interface Expected usage to compare a path that has placeholder and a real path. Ex: /accounts/{account_id} == /accounts/1234567890
type NullValidator ¶ added in v1.6.8
type NullValidator struct{}
NullValidator - type
func (NullValidator) IsRequestProperty ¶ added in v1.6.8
func (v NullValidator) IsRequestProperty(method, path, propertpath string) (bool, string, error)
IsRequestProperty - nop
type Validator ¶
type Validator interface { Validate(Response) ([]Failure, error) IsRequestProperty(method, path, propertpath string) (bool, string, error) }
Validator validates a HTTP response object against a schema
func NewSwaggerOBSpecValidator ¶
NewSwaggerOBSpecValidator -
func NewSwaggerValidator ¶
NewSwaggerValidator returns a swagger validator implementation Takes a schema file path as source, can be remote http(s) or local
Click to show internal directories.
Click to hide internal directories.