{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api.forgeling.io/schemas/events/run.failed.json",
  "title": "run.failed",
  "description": "The run ended in failure.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "code",
    "message"
  ],
  "properties": {
    "code": {
      "enum": [
        "capacity_unavailable",
        "image_unavailable",
        "infrastructure",
        "credential_missing",
        "repo_policy_unmet",
        "repo_auth_failed",
        "repo_not_found",
        "ref_not_found",
        "clone_failed",
        "bootstrap_failed",
        "events_lost",
        "sandbox_protocol_violation"
      ]
    },
    "message": {
      "type": "string"
    }
  }
}
