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.
Click to show internal directories.
Click to hide internal directories.