validator

package
v1.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Validate = New()

Functions

func New

func New() *validator.Validate

func ValidateBody

func ValidateBody(c *fiber.Ctx, dest any) error

func ValidateQuery added in v0.6.0

func ValidateQuery(c *fiber.Ctx, dest any) error

func ValidateStruct added in v0.6.0

func ValidateStruct(dest any) error

Types

type ValidationError

type ValidationError struct {
	Field     string `json:"field"`
	Violation string `json:"violation"`
	Message   string `json:"message"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL