Versions in this module Expand all Collapse all v0 v0.1.0 Oct 25, 2025 Changes in this version + func GetValidatedData[T any](c *fiber.Ctx) (T, error) + func ValidateRequest[T any](validator *Validator) fiber.Handler + type CreateProductRequest struct + Category string + Description string + InStock bool + Name string + Price float64 + SKU string + type CreateUserRequest struct + Age int + Email string + Name string + Password string + Phone string + type ErrorResponse struct + Details string + Error string + Message string + type LoginRequest struct + Email string + Password string + type LoginResponse struct + Requires2FA bool + RequiresOTP bool + Tokens TokenPair + User UserResponse + type PaginationRequest struct + Page int + PageSize int + type PaginationResponse struct + Page int + PageSize int + Total int64 + TotalPages int + type ProductResponse struct + Category string + CreatedAt time.Time + Description string + ID string + InStock bool + Name string + Price float64 + SKU string + UpdatedAt time.Time + type Schema struct + Description string + Example interface{} + Properties map[string]interface{} + Required []string + Type string + type SearchRequest struct + Limit int + Offset int + Query string + type SearchResponse struct + Query string + Results []ProductResponse + Total int64 + type SuccessResponse struct + Data interface{} + Message string + Success bool + type TokenPair struct + AccessToken string + ExpiresAt time.Time + RefreshToken string + TokenType string + type UpdateUserRequest struct + Age *int + Email *string + Name *string + Phone *string + type UserResponse struct + CreatedAt time.Time + Email string + ID string + Is2FAEnabled bool + IsEmailVerified bool + type ValidationError struct + Field string + Message string + Tag string + Value interface{} + func (e ValidationError) Error() string + type Validator struct + func NewValidator() *Validator + func (v *Validator) GenerateSchema(s interface{}) (*Schema, error) + func (v *Validator) ValidateQuery(c *fiber.Ctx, dest interface{}) error + func (v *Validator) ValidateRequest(c *fiber.Ctx, dest interface{}) error + func (v *Validator) ValidateStruct(s interface{}) error