Skip to main content

ValidationError

errorCodestringrequired

Machine-readable error code indicating the type of error.

Example: VALIDATION_ERROR
messagestringrequired

Human-readable description of the error.

Example: Input validation errors
errors object

Object where each key corresponds to the name of an invalid field. Each value is an array of strings, where each string describes a specific validation issue for that field.

property name* string[]
  • Array [
  • string
  • ]
  • ValidationError
    {
    "errorCode": "VALIDATION_ERROR",
    "message": "Input validation errors",
    "errors": {
    "amount": [
    "[required]: Is a required non-nullable field",
    "[int]: Must be an integer",
    "[min:0]: Must be greater than 0",
    "[max:999999999]: Must be less than 999999999"
    ]
    }
    }