validation

package
v0.0.0-...-50d7d3f Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ValidationError

type ValidationError struct {
	Field    string `json:"field"`
	Code     string `json:"code"`
	Argument string `json:"argument"`
	Message  string `json:"message"`
}

func ParseValidationErr

func ParseValidationErr(err error) []ValidationError

ParseValidationErr extracts error messages from validation error

type Validator

type Validator interface {
	Validate(s interface{}) error
}

func NewInternalValidator

func NewInternalValidator(validator *validCheck.Validate) Validator

Jump to

Keyboard shortcuts

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