Versions in this module Expand all Collapse all v0 v0.2.0 Dec 25, 2015 v0.1.0 Dec 14, 2015 Changes in this version + type EntityValidator interface + Validate func(interface{}) *Result + type HeaderValidator struct + KnownFormats strfmt.Registry + func NewHeaderValidator(name string, header *spec.Header, formats strfmt.Registry) *HeaderValidator + func (p *HeaderValidator) Validate(data interface{}) *Result + type ParamValidator struct + KnownFormats strfmt.Registry + func NewParamValidator(param *spec.Parameter, formats strfmt.Registry) *ParamValidator + func (p *ParamValidator) Validate(data interface{}) *Result + type Result struct + Errors []error + MatchCount int + func (r *Result) AddErrors(errors ...error) + func (r *Result) AsError() error + func (r *Result) HasErrors() bool + func (r *Result) Inc() + func (r *Result) IsValid() bool + func (r *Result) Merge(other *Result) *Result + type SchemaValidator struct + KnownFormats strfmt.Registry + Path string + Root interface{} + Schema *spec.Schema + func NewSchemaValidator(schema *spec.Schema, rootSchema interface{}, root string, ...) *SchemaValidator + func (s *SchemaValidator) Applies(source interface{}, kind reflect.Kind) bool + func (s *SchemaValidator) SetPath(path string) + func (s *SchemaValidator) Validate(data interface{}) *Result + type SpecValidator struct + KnownFormats strfmt.Registry + func NewSpecValidator(schema *spec.Schema, formats strfmt.Registry) *SpecValidator + func (s *SpecValidator) Validate(data interface{}) (errs *Result, warnings *Result)