Help us shape the future of Go! Take the 2026 Go Developer Survey

faults

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package faults carries error identities shared by the public adapters and private validation engines. It does not depend on schema implementations.

Index

Constants

This section is empty.

Variables

View Source
var ErrEncodedJSON = errors.New("validate: malformed encoded JSON")

ErrEncodedJSON identifies malformed strict instance JSON.

View Source
var ErrEncodedLimit = errors.New("validate: encoded JSON resource limit")

ErrEncodedLimit identifies a strict JSON resource refusal.

View Source
var ErrInvalidSchema = errors.New("validate: invalid schema")

ErrInvalidSchema identifies an invalid schema declaration.

Functions

This section is empty.

Types

type Mismatch

type Mismatch struct {
	// Pointer locates the failed instance value.
	Pointer string
	// Keyword identifies the failed assertion without retaining schema literals.
	Keyword string
}

Mismatch carries an encoded assertion failure across the private boundary. Public adapters materialize their own Errors and Violation values.

func (Mismatch) Error

func (mismatch Mismatch) Error() string

Error implements error without including instance values or schema literals.

Jump to

Keyboard shortcuts

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