{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bugbug-io/json-schema/bugbug-io-project-backup-list-schema.json",
  "title": "ProjectBackupList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bugbug-io-import-export-api-openapi.yml#/components/schemas/ProjectBackupList",
  "type": "object",
  "properties": {
    "isActive": {
      "type": "boolean"
    },
    "frequencyDays": {
      "type": "integer"
    },
    "retentionDays": {
      "type": [
        "integer",
        "null"
      ]
    },
    "nextBackupAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "backups": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ProjectBackup"
      }
    }
  },
  "required": [
    "backups",
    "frequencyDays",
    "isActive",
    "nextBackupAt",
    "retentionDays"
  ],
  "$defs": {
    "ProjectBackup": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "readOnly": true
        },
        "created": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "expiresAt": {
          "type": "string",
          "format": "date-time"
        },
        "testsCount": {
          "type": "integer",
          "readOnly": true
        },
        "suitesCount": {
          "type": "integer",
          "readOnly": true
        },
        "retentionDays": {
          "type": "integer",
          "readOnly": true
        },
        "triggeredBy": {
          "enum": [
            "automatic"
          ],
          "type": "string",
          "description": "* `automatic` - Automatic",
          "x-spec-enum-id": "919f179dba57785c",
          "readOnly": true
        }
      },
      "required": [
        "created",
        "expiresAt",
        "id",
        "retentionDays",
        "suitesCount",
        "testsCount",
        "triggeredBy"
      ]
    }
  }
}