Versions in this module Expand all Collapse all v1 v1.3.0 Jul 21, 2022 v1.2.0 Jul 21, 2022 Changes in this version + func NewErrSchemaFileFormatNotSupported(ext string) error + func NewErrSchemaNotFound(name string) error + type ErrSchemaFileFormatNotSupported struct + Ext string + func (e *ErrSchemaFileFormatNotSupported) Error() string + type ErrSchemaNotFound struct + Name string + func (e *ErrSchemaNotFound) Error() string + type MockSchemaValidator struct + func (_m *MockSchemaValidator) SchemaValidator() *spec.Schema + type SchemaValidator interface + SchemaValidator func() *spec.Schema + type Validator struct + func NewValidator() *Validator + func (v *Validator) AddSchemFromObject(object SchemaValidator) error + func (v *Validator) AddSchemFromObjectName(name string, object SchemaValidator) error + func (v *Validator) AddSchema(name string, schema *spec.Schema) error + func (v *Validator) AddSchemaFromFile(name string, filename string) error + func (v *Validator) AddSchemaFromJSON(name string, content json.RawMessage) error + func (v *Validator) AddSchemaFromReader(name string, format string, reader io.Reader) error + func (v *Validator) AddSchemaFromYAML(name string, content []byte) error + func (v Validator) Validate(name string, data interface{}) *validate.Result