edgegriderr

package
v8.2.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package edgegriderr is used for parsing validation errors to make them more readable. It formats error(s) in a way, that the return value is one formatted error type, consisting of all the errors that occurred in human-readable form. It is important to provide all the validation errors to the function. Usage example:

error := edgegriderr.ParseValidationErrors(validation.Errors{
	"Validation1": validation.Validate(...),
	"Validation2": validation.Validate(...),
})

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseValidationErrors

func ParseValidationErrors(e validation.Errors) error

ParseValidationErrors parses validation errors into easily readable form The output error is formatted with indentations and struct field indexing for collections

Types

This section is empty.

Jump to

Keyboard shortcuts

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