Skip to main content
Version: 0.17

Interface: ValidationIssue<Ref, Details>

Type parameters​

NameType
Refunknown
Detailsunknown

Properties​

description​

• description: string

A brief description of the violation. This does not have to be appropriate for end users, who should typically be shown internationalized, customized messages.

Defined in​

validator.ts:21


details​

• Optional details: Details

Details specific to the validation performed that will be helpful to understand the violation.

Defined in​

validator.ts:35


ref​

• Optional ref: Ref

A reference to the source of the validation issue. This should be specific enough to allow dereferencing to a particular record, field, etc. For low-level primitive validations (e.g. booleans, strings, etc.), this should be the value itself.

Defined in​

validator.ts:29


validation​

• validation: string

An identifier for the validation violation.

Defined in​

validator.ts:14


validator​

• validator: string

An identifier for the validator that caused the issue.

Defined in​

validator.ts:9