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"
}