validate

package
v0.0.0-...-7bca6fd Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 2 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 {
	GraphQLField *string `json:"field"`
	Message      string  `json:"message"`
}

func (ValidationError) String

func (e ValidationError) String() string

type ValidationErrors

type ValidationErrors struct {
	Errors []*ValidationError `json:"errors"`
}

func New

func New() *ValidationErrors

func (*ValidationErrors) Add

func (e *ValidationErrors) Add(field, message string, args ...any)

func (*ValidationErrors) AddMessage

func (e *ValidationErrors) AddMessage(message string, args ...any)

func (*ValidationErrors) Error

func (e *ValidationErrors) Error() string

func (*ValidationErrors) NilIfEmpty

func (e *ValidationErrors) NilIfEmpty() error

Jump to

Keyboard shortcuts

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