Files

112 lines
2.3 KiB
JSON

{
"$defs": {
"ErrorCode": {
"enum": [
"SCOPE_REQUIRED",
"OUT_OF_SCOPE",
"UNAUTHORIZED",
"OWNER_DECISION_REQUIRED",
"POLICY_MISSING",
"EVIDENCE_MISMATCH",
"SUPPORT_UNAVAILABLE",
"BASE_CONFLICT",
"IDEMPOTENCY_CONFLICT",
"BUDGET_TOO_SMALL",
"UPLOAD_EXPIRED",
"BUSY",
"RECOVERY_REQUIRED"
],
"title": "ErrorCode",
"type": "string"
},
"Finding": {
"additionalProperties": false,
"properties": {
"code": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Code",
"type": "string"
},
"message": {
"maxLength": 1000,
"minLength": 1,
"title": "Message",
"type": "string"
},
"path": {
"anyOf": [
{
"maxLength": 256,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Path"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
}
},
"required": [
"code",
"message"
],
"title": "Finding",
"type": "object"
}
},
"additionalProperties": false,
"properties": {
"code": {
"$ref": "#/$defs/ErrorCode"
},
"findings": {
"default": [],
"items": {
"$ref": "#/$defs/Finding"
},
"title": "Findings",
"type": "array"
},
"message": {
"maxLength": 1000,
"minLength": 1,
"title": "Message",
"type": "string"
},
"request_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Request Id",
"type": "string"
},
"retryable": {
"title": "Retryable",
"type": "boolean"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
}
},
"required": [
"code",
"message",
"retryable",
"request_id"
],
"title": "DomainError",
"type": "object"
}