Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBasicValidator ¶
NewBasicValidator retains the old constructor name but now returns the go-playground-backed validator.
func NewPlaygroundValidator ¶
NewPlaygroundValidator constructs a validator backed by github.com/go-playground/validator/v10.
Types ¶
type ValidationError ¶
type ValidationError struct {
Field string `json:"field"`
Message string `json:"message"`
Value string `json:"value,omitempty"`
}
ValidationError represents a validation error with field-specific details.
func (ValidationError) Error ¶
func (e ValidationError) Error() string
type ValidationErrors ¶
type ValidationErrors struct {
Errors []ValidationError `json:"errors"`
}
ValidationErrors represents multiple validation errors.
func (ValidationErrors) Error ¶
func (e ValidationErrors) Error() string
Click to show internal directories.
Click to hide internal directories.