Versions in this module Expand all Collapse all v1 v1.0.2 Sep 22, 2023 Changes in this version + func DisableValidation() + func Enable() + func Enabled() bool + func RegisterFactory(schemaType string, factory Factory) error + func ResolveSchemas() + func ValidationEnabled() bool + type Def struct + Type string + Value string + type Factory interface + New func(def *Def) (Schema, error) + func GetFactory(schemaType string) Factory + type HasSchema interface + Schema func() Schema + type HasSchemaIO interface + GetInputSchema func(name string) Schema + GetOutputSchema func(name string) Schema + type Schema interface + Type func() string + Validate func(data interface{}) error + Value func() string + func FindOrCreate(schemaRep interface{}) (Schema, error) + func Get(id string) Schema + func New(schemaDef *Def) (Schema, error) + func Register(id string, def *Def) (Schema, error) + type ValidationBypass interface + BypassValidation func() bool + type ValidationError struct + func NewValidationError(msg string, errors []error) *ValidationError + func (e *ValidationError) Error() string + func (e *ValidationError) Errors() []error