ValidationErrorData

Which fields failed validation, and why.

  • issues
    Type: array object[] …100

    Every field that failed validation, up to 100 per response. Absent when the request was rejected for a reason other than validation — message says why.

    • field
      Type: string
      required

      The field that failed, as a dotted path — listing.price.amount for a nested field, lines.3.quantity for the fourth entry of an array. Empty when the problem is with the request body as a whole.

    • message
      Type: string
      required

      What is wrong with the value you sent.

Examples
{
  "issues": [
    {
      "field": "productIds",
      "message": "Too big: expected array to have <=200 items"
    },
    {
      "field": "lines.3.quantity",
      "message": "Too small: expected number to be >=1"
    }
  ]
}