validator

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Codespace = "validation"
)

Variables

View Source
var (
	ErrRequiredFieldMissing     = sdkerrors.Register(Codespace, 900, "required field missing")
	ErrFieldMaxLengthExceeded   = sdkerrors.Register(Codespace, 901, "field max length exceeded")
	ErrFieldNotValid            = sdkerrors.Register(Codespace, 902, "field not valid")
	ErrFieldLowerBoundViolated  = sdkerrors.Register(Codespace, 903, "field lower bound violated")
	ErrFieldUpperBoundViolated  = sdkerrors.Register(Codespace, 904, "field upper bound violated")
	ErrFieldMinLengthNotReached = sdkerrors.Register(Codespace, 905, "field min length not reached")
)

Functions

func Validate added in v0.6.0

func Validate(s interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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