Skip to main content

OptimalError

Hierarchy

Index

Constructors

constructor

Properties

errors

errors: ValidationError[] = []

List of invalidations for the field.

file

file: string = ''

File name/path that is being validated.

hasOriginalMessage

hasOriginalMessage: boolean = false

Whether an original message was provided through the constructor.

hasPathPrefix

hasPathPrefix: boolean = false

Whether a “Invalid path” message was prepended to the original message.

path

path: string

Object path for the invalid field.

schema

schema: string = ''

Unique name for this validation.

value

value: unknown

Field value at time of failure.

Methods

addErrors