Class ValidationErrorItem

The structure of a validation error.

Path defines the shallow or deep path (using dots). Message is an arbitrary message in english.

In validators please use and return new ValidatorError('code', 'message') instead.

Hierarchy

  • ValidationErrorItem

Constructors

Properties

Methods

Constructors

  • Parameters

    • path: string

      The path to the property. Might be a deep path separated by dot.

    • code: string

      A lower cased error code that can be used to identify this error and translate.

    • message: string

      Free text of the error.

    Returns ValidationErrorItem

Properties

code: string

A lower cased error code that can be used to identify this error and translate.

message: string

Free text of the error.

path: string

The path to the property. Might be a deep path separated by dot.

Methods

Generated using TypeDoc