validation

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ValidationErr = "INVALID_REQUEST_PAYLOAD"
)

Variables

This section is empty.

Functions

func BindValidatePayload

func BindValidatePayload[T any](c *echo.Context, v *Vld) (*T, *herodot.DefaultError)

func ExtractErrDetail

func ExtractErrDetail(validationErrors validator.ValidationErrors) []validationErrorDetail

func ValidatePayload

func ValidatePayload[T any](v *Vld, payload *T) *herodot.DefaultError

Types

type Vld

type Vld struct {
	Vld *validator.Validate
}

func InitValidation

func InitValidation() *Vld

Jump to

Keyboard shortcuts

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