validation

package
v0.0.0-...-e1f8fc5 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorFailedConstraint

type ErrorFailedConstraint struct {
	Constraint    string `json:"constraint"`
	Configuration string `json:"configuration"`
}

type ErrorResponse

type ErrorResponse struct {
	Field  string                `json:"field"`
	Value  interface{}           `json:"value"`
	Failed ErrorFailedConstraint `json:"failed"`
}

func Validate

func Validate(data interface{}) []ErrorResponse

Jump to

Keyboard shortcuts

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