validation

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(out any, o ...json.Options) ([]byte, error)

func MarshalEncode

func MarshalEncode(e *jsontext.Encoder, v any, o ...json.Options) error

func MarshalWrite

func MarshalWrite(w io.Writer, v any, o ...json.Options) error

func Unmarshal

func Unmarshal(data []byte, v any, o ...json.Options) error

func UnmarshalDecode

func UnmarshalDecode(d *jsontext.Decoder, v any, o ...json.Options) error

func UnmarshalDecodeUnion

func UnmarshalDecodeUnion(dec *jsontext.Decoder, ut UnionType) error

func UnmarshalReader

func UnmarshalReader(r io.Reader, v any, o ...json.Options) error

func UnmarshalUnion

func UnmarshalUnion(data []byte, ut UnionType) error

Types

type Provider

type Provider = validation.Provider

type UnionType

type UnionType interface {
	Discriminator() string
	Mapping() map[string]any
	SetUnderlying(u any)
}

type Validator

type Validator = validation.Validator

Directories

Path Synopsis
internal/cmd command
Package validators defines field validation
Package validators defines field validation

Jump to

Keyboard shortcuts

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