 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorType ¶
type ErrorType string
ErrorType represents the type of validation error
const ( // ErrorTypeSchema indicates a schema structure validation error ErrorTypeSchema ErrorType = "SchemaError" // ErrorTypeConstraint indicates a Radius constraint violation ErrorTypeConstraint ErrorType = "ConstraintError" // ErrorTypeFormat indicates a format validation error ErrorTypeFormat ErrorType = "FormatError" )
type ValidationError ¶
ValidationError represents a schema validation error
func NewConstraintError ¶
func NewConstraintError(field, message string) *ValidationError
NewConstraintError creates a Radius constraint validation error
func NewFormatError ¶
func NewFormatError(field, format, message string) *ValidationError
NewFormatError creates a new format validation error
func NewSchemaError ¶
func NewSchemaError(field, message string) *ValidationError
NewSchemaError creates a schema validation error
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Error implements the error interface
type ValidationErrors ¶
type ValidationErrors struct {
	Errors []*ValidationError
}
    ValidationErrors represents a collection of validation errors
func (*ValidationErrors) Add ¶
func (ve *ValidationErrors) Add(err *ValidationError)
Add adds a validation error to the collection
func (*ValidationErrors) Error ¶
func (ve *ValidationErrors) Error() string
Error implements the error interface
func (*ValidationErrors) HasErrors ¶
func (ve *ValidationErrors) HasErrors() bool
HasErrors returns true if there are any validation errors
 Click to show internal directories. 
   Click to hide internal directories.