validation

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 9 Imported by: 0

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