Home Manual Reference Source Repository

Typedef

Static Public Summary
public
public

Contains schema errors.

Static Public

public CancelablePromise: Promise source

Properties:

NameTypeAttributeDescription
cancel function(): void

Cancel the promise

public SchemaError: Object source

Contains schema errors. Normally thrown when a job object is invalid.

Properties:

NameTypeAttributeDescription
property string

json property

pointer string

json pointer

message string

error message

context number
constraint Object
constraint.params Object<string, string>
constraint.name string

Example:

{
  property: "data.meta",
  pointer: "/data/meta",
  message: "The property meta is required",
  constraint: {
    name: "required",
    params: {
      property: "meta"
    }
  },
  context: 1
}

See: