К содержимому

Error ​

Тип: object

ПолеОбязательноеТипОписание и ограничения
codeДаstring
diagnostic_idНетstring / nullИдентификатор внутреннего диагностического лога ошибки, если доступен. Не предоставляет доступ к логам.
detailsДаarray<ErrorDetail>
messageДаstringСообщение об ошибке для пользователя. Ошибки исполнения включают исходное сообщение харнеса и доступные дополнительные сведения. Если их нет, возвращается общее сообщение.
phaseДаstring / null

JSON Schema ​

json
{
  "properties": {
    "code": {
      "title": "Code",
      "type": "string"
    },
    "diagnostic_id": {
      "description": "Identifier of the internal diagnostic log for this error, when available. It does not grant access to logs.",
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    },
    "details": {
      "items": {
        "$ref": "#/components/schemas/ErrorDetail"
      },
      "title": "Details",
      "type": "array"
    },
    "message": {
      "description": "Human-readable error message. Harness execution failures include the original harness message and additional details when available; otherwise a generic message is returned.",
      "title": "Message",
      "type": "string"
    },
    "phase": {
      "anyOf": [
        {
          "enum": [
            "preparation",
            "execution",
            "finalization",
            "recovery"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Phase"
    }
  },
  "required": [
    "code",
    "message",
    "phase",
    "details"
  ],
  "title": "Error",
  "type": "object"
}

Все схемы · HTTP API