validation

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Key    string
	Fields map[string]Violation
}

Error describes invalid input independently of the request language.

func (*Error) Error

func (e *Error) Error() string

type Violation

type Violation struct {
	Key     string
	Count   int
	Options []string // Message IDs for the allowed values, in display order.
}

Violation identifies a rule and any parameters needed to describe it.

Jump to

Keyboard shortcuts

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